New answers tagged

1

Track it with either a UA tag Event type, using a link click trigger based on the element ID.. or Same principal but configure a UA Tag Pageview Type, and configure the Fields to Set for the path and page title (which will create and send a virtual pageview), again using a link click trigger based on the element ID


2

With GTM, a bot needs to render your pages to see your Structured Data (SD). This means most bots will not see it. Best is to test with any search engine or system you care about. If you use Google Merchant Centre, it does not render and will not see any SD in GTM or created via JavaScript. If you are trying to test with the Structured Data Testing Tool, ...


0

Here is my solution by using onclick to track the click and href to navigate. Even simpler seems to use the Google Tag Manager's outbound link tracking trigger, which seems to eliminate the need for onclick script completely. Widget HTML: <ul class="social-networks"> <li> <a href="https://www.pinterest.com/MyAccount/"...


5

Yes, the article is not quite complete. Any trigger has to be matched with a tag, in this case a Universal Analytics Event tracking tag (I do not believe there is another appropriate way to send it). Ours had the following values: Category: JavaScript Error Action: {{Error Message}} Label: {{Error Line}}: {{Error URL}} I say "had" because we have ...


0

Make sure in the Variable config that you include the dot .buybtn for Element Selector. Also the Element Visibility Variable when using a true/false boolean value refers to whether the selected element is visible when the variable is referenced - it will return null as the value, if the page does not contain an element with the specified class buybtn. ...


Top 50 recent answers are included