Skip to content

Commit

Permalink
Fix click logic
Browse files Browse the repository at this point in the history
  • Loading branch information
robdekort committed Mar 12, 2024
1 parent bd129aa commit be6704c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions resources/views/snippets/_button_attributes.antlers.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@
{{ attr_title ?= 'title="{{ attr_title }}"' }}
{{ attr_aria ?= 'aria-label="{{ attr_aria }}"' }}
{{ if environment == 'production' && seo:trackers_production && tracker_event }}
x-data
{{ if seo:use_fathom }}
@click="fathom.trackEvent({{ tracker_event }})"
onclick="fathom.trackEvent('{{ tracker_event }}')"
{{ /if }}
{{ if tracker_type === 'gtag' || tracker_type === 'gtm' }}
@click="dataLayer.push({'event': '{{ tracker_event }}'})"
onclick="dataLayer.push({'event': '{{ tracker_event }}'})"
{{ /if }}
{{ /if }}

0 comments on commit be6704c

Please sign in to comment.