Home › Forums › Backend Issues (wp-admin) › Add Click-to-Call Tracking › Reply To: Add Click-to-Call Tracking
This isn’t really an ACF question. ACF will not automatically add something like this to a link unless you alter the theme files to do it.
You would need to write a script that would read though all of the links and add the events. https://stackoverflow.com/questions/33809527/adding-onclick-to-all-tel-links
We use google tag manager rather than GA. https://tagmanager.google.com/. Most good themes include a way to add the code needed for tag manager. Using tag manager anyone can then install GA and add events to elements on a page as well as add other scripts to the site without needing to modify the theme to do it.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.