Skip to content

Commit

Permalink
Add tracker_event field to button fieldset
Browse files Browse the repository at this point in the history
  • Loading branch information
robdekort committed Mar 12, 2024
1 parent 00acc52 commit 3351ac6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions resources/fieldsets/button.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,24 @@ fields:
replicator_preview: false
if:
show_controls: 'equals true'
-
handle: tracker_event
field:
input_type: text
type: text
localizable: true
listable: false
placeholder: my-custom-event
display: 'Tracker event'
instructions: "Add the name of the event you want to be fired on click. This only works if you've setup Fathom or GA/'GTM. These events only fire on a production environment. Allowed' => `A-Z`, `a-z`, `0-9`, `-`, `_`."
validate:
- 'regex:/[A-Za-z0-9_\-]+$/'
instructions_position: below
width: 50
replicator_preview: false
visibility: visible
antlers: false
hide_display: false
if:
show_controls: 'equals true'
label: 'custom tracker_events'

0 comments on commit 3351ac6

Please sign in to comment.