-
Author
Tagged: google analytics event tracking
-
July 10, 2014 at 04:00 #22190
gm713
ParticipantHow do I add google analytics event tracking code to a button. I want to be able to add this
onClick=”ga (‘send’, ‘event’, ‘something’, ‘something’, ‘something’);”
July 10, 2014 at 13:25 #22250Catalin
ModeratorPlease try a Google search or a development forum for getting this answer.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 10, 2014 at 15:30 #22265gm713
ParticipantHi Catalin,
Thanks for your reply, but let me elaborate. I’m not asking for a generic answer at an HTML level, but for KLOE theme specific method of accomplishing this.
To elaborate, in HTML I would write the following line:
So, the questions is – How do I append GA’s event tracking code with hyperlinks/buttons?
July 10, 2014 at 15:36 #22267gm713
ParticipantSorry, the link above got rendered as an HTML element despite of some replacements . This is what I meant:
“[” a href=”example.com” onClick=”ga (‘send’, ‘event’, ‘Anchor Tag’, ‘Menu Click’, ‘About Me’);”]”About”[“/a”]”
PS: Replace “[” (including quotes) by < and “]” by >:
July 16, 2014 at 15:10 #22737Abe
KeymasterHi @gm713
Add it to a page by editing it’s contents from WP admin – Pages – edit a page. From the Text tab of the editor add it just like regular HTML. This is basic WP functionality, nothing related to KLEO of interpreting thingsHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The topic ‘Google Analytics – Event Tracking’ is closed to new replies.

