Last active
September 20, 2023 13:24
-
-
Save dan-donica/19a75756a892177d62af8e6f384de59f to your computer and use it in GitHub Desktop.
HC || Google Analytics conversion tracking for AMP - 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Begin "Google Analytics for AMP - Click" || Help center --> | |
| <!-- Insert in Settings->HTML/CSS->Body --> | |
| <!-- IN:20230920-13-2 --> | |
| <amp-analytics type="gtag" data-credentials="include"> | |
| <script type="application/json"> | |
| { | |
| "vars": { | |
| "gtag_id": "G-XXXXXXXXXX", | |
| "config": { | |
| "G-XXXXXXXXXX": { "groups": "default" } | |
| } | |
| }, | |
| "triggers": { | |
| "trackPageview": { | |
| "on": "visible", | |
| "request": "pageview" | |
| }, | |
| "buttonClick": { | |
| "selector": "#element-ID", | |
| "on": "click", | |
| "request": "event", | |
| "vars": { | |
| "event_name": "insert_event_name_here", | |
| "method": "Google" | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| </amp-analytics> | |
| <!-- End "Google Analytics for AMP - Click" || Help center --> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://help.instapage.com/hc/en-us/articles/360024406014-Google-Analytics-Conversion-Tracking-for-AMP