Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Content Editor set up event tracking with google analytics
- This topic has 3 replies, 2 voices, and was last updated 7 years, 7 months ago by J. Davis.
- AuthorPosts
- September 5, 2016 at 11:17 am #373390charlesGuest
Hi
I’d like to be able to monitor how my CTA is performing and for that I usually use Events in google analytics.
Usually I insert the snippet into a link so that when someone clicks on it, Google Analytics will know that an event has been triggered and record it. I do this by passing the “onClick” JavaScript function.But no matter where I try to write my code, events are not recorded.
Can you give me a hint on how to use that OR a different way to monitor my CTA using motopress ?
Thanks
September 7, 2016 at 11:54 am #374788J. DavisKeymasterHi Charles,
You can use special plugins like https://wordpress.org/plugins/gravitate-event-tracking/ You should configure plugin, indicate class for event to reacts. Then this class should be applied to element(for example CTA element) via property panel. When button with this class is clicked the event is submitted.
Best regards,
JohnApril 13, 2017 at 8:33 am #506089HannaGuestHi!
I’ve successfully activated the Gravitate plugin on my WP site. I see that in the presets the classes “gtrack” and “gtrackexternal” are both registered with a “.” in front. Is that something I should apply to my custom tracking (my own classes).I also wonder, how does the plug in understand which are id’s and which are classes?
Thanks in advance,
HannaApril 13, 2017 at 3:32 pm #506225J. DavisKeymasterHello Hanna,
Yes, you can try to apply your class name only (without a dot ‘.’) to an element by going to Style tab. Please refer to screenshot http://prntscr.com/ew0yt4
ID can be applied for Rows only http://prntscr.com/ew0z6p
Best regards,
John - AuthorPosts
- You must be logged in to reply to this topic.