Hi Kresi
I’m trying to include Google Analytics event tracking to my mailto links on the site, but when saving the text block the onclick is removed. Any idea why this is happening and how to resolve it?
This is the tracking code i’m using: (Email address hidden if logged out) “> (Email address hidden if logged out)
Regards
My bad, this is the code I’m using:
<a href="mailto: (Email address hidden if logged out) " onclick="ga('send', 'event', 'Email Address', 'Click', 'Contact Us Email');"> (Email address hidden if logged out) </a>
Hi!
Try using a Code Block instead.
Best regards,
Josue
Hi @communi_cat,
if you want to track events with Google Analytics there are some good plugins that does the job for you!
Dont know what the enfold support recommeds here.
Go to google and just serach for :
wordpress google analytics plugin
Im doing this with the Google Tag Manager / GoogleAanalytics where u can track this and more….
Enfold = Google Tag Manager / Google analytics = Awesome.
Just answerd a post here on here please read it.
https://kriesi.at/support/topic/google-analytics-not-working-in-enfold-2/