Consequently, if you want to travel from one domain to another and still maintain all your hits under the same Client ID, you will need to somehow pass your cookie value from one domain to another without violating the restriction outlined in the first sentence of this paragraph.
Minimum Continuous Time is the minimum amount of time in one stretch that the element must be visible in the viewport (in milliseconds). Each threshold in your Scroll trigger is checked against the following calculation: (scrollTop + viewportHeight) / scrollHeight. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Click the link below to submit a support ticket, How to Add Google Tag Manager ( GTM ) in AMP for WP, How to use POT file to translate amp settings panel, How to add noopener to all your social share links, How to add no referrer to all your social share links, How to fix URL marked ‘noindex’ AMP validation error in Google search console, How to fix “There has been a critical error on your website” error on AMP, How to Redirect All mobile visitors to AMP, Step-By-Step Guide for Implementing AMP on WordPress. If you remember, you need to add this parameter to the container request, and set its value to SOURCE_URL. Once you’ve done these steps, you are ready start configuring your tracking! You see, if the user lands on your AMP page via Google search, which is probably the most typical use case, they’ll actually visit a cached version of your page on www.google.com. The Right Way. In the AMP Google Tag Manager container, you can create variable references to these AMP Analytics variables using the AMP variable type. Use just a single trigger, but send the scrollTop, viewportHeight and scrollHeight as Custom Dimensions (Google Analytics example), and then do the calculations in a spreadsheet or something else where you export the data to. : The >m.url parameter is important. The firing pattern is determined by the settings you input into the trigger: Interval is the number of seconds that needs to pass before the trigger is fired. Don’t worry we’re here to help! In each of the tags, you can now tell precisely which threshold was crossed. Will let you know if I experience any problems, or need help. Fire Immediately When Triggered when checked fires the request once as soon as the container is loaded. First-party cookies can only be written on the domain you are currently on. To create custom AMP variables, you include them like this: So you include them in the "vars" block as key-value pairs. Maximum Percent Visible is the maximum amount of the element that can be visible in the browser viewport.
You’ll create your tags just as you used to, filling the fields as before, so it’s as if nothing’s changed. Minimum Percent Visible is the minimum amount of the element that needs to be visible in the browser viewport for the trigger to be valid for firing. URL variables exist in regular Google Tag Manager, too. It lets you trigger tag requests on certain scroll thresholds, which are represented by percentage of vertical or horizontal scrolling.
For example, if you are in New York City, Client Timezone would return 300, because New York is 5 hours behind UTC.
In addition to Built-In variables, you can also create variables of your own.
If you have an insight or something that can help other users, then please write to us below. The percentage is calculated from the maximum available height or width of the page, respectively. AMP Analytics supports two types of variables: platform and page-defined variables. To enable them, you need to go to Variables in the container, and under the “Built-In Variables” heading click the large red CONFIGURE button to enable / disable any variables. Client Timezone (AMP variable): Returns the timezone offset in minutes from UTC based on client’s system time. AMP Analytics does not use the _ga cookie by default, even though you can set it up so that AMP falls back to _ga if one is found.
Page Download Time (AMP variable): Time in milliseconds from the moment the request for the page content was dispatched to the moment the last byte of the document was downloaded from the web server. The Lookup Table variable is a staple from regular Google Tag Manager.