Home › Forums › Add-ons › Repeater Field › How do I add a GA onclick event tracking to a Page Link in a Repeater field? › Reply To: How do I add a GA onclick event tracking to a Page Link in a Repeater field?
It has to be added to the page where the html link is generated. May not be possible and we’d have to see where the link is generated. Not really an ACF question… but I have a better solution than putting onclick events in your code.
Set up Google Tag Manager on the site. Once you’ve removed your standard GA code and added the Google Tag Manager code you can set up GA and add events to just about anything on the site without mucking about in the code.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.