1

Our WordPress website is using Divi, which prevents the anchor address being added to the address bar when clicking on anchor links.

How do we use Google Tag Manager to track in Google Analytics clicks on the following link:

<a href="#contact" id="contact-insight" target="_self"><img src="..."> Connect</a>

Update: to avoid screwing things up, we used Google Analytics Dashboard for WordPress by Exact Metrics, and their tutorial on custom link attribution.

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

| improve this answer | |
  • Which element ID, the link, or the anchor? – Insight Feb 21 at 6:28
  • The link ID id="contact-insight" – Bronwyn V Feb 21 at 15:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.