How to add Google Analytics Event Tracking??

How to add Google Analytics Event Tracking?? was created by Grass

Posted 8 years 6 months ago #29937
Hey there,

got a new website where we use the Mediabox CK but google analytics doesn't count the events when users click through all of the images.

Can anyone give me some help or luckily the code i have to add to the head of ouf website www.topgear-deutschland.de ? Allready know this developers.google.com/analytics/devguide...n/analyticsjs/events but doesn't really know what to add to our code.

Thanks a lot
Fabian
by Grass

Please Log in or Create an account to join the conversation.

Replied by Grass on topic How to add Google Analytics Event Tracking??

Posted 8 years 6 months ago #29938
Ohh and i forgot - would be really great if Google Analytics also can track the events coming from mobile devices (swipe gesture!) because most of our users are via smartphone or tablet ;-)
by Grass

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic How to add Google Analytics Event Tracking??

Posted 8 years 6 months ago #29941
Hi
this is not really have anything to do with Mediabox :)
you can add the code in your page to track the click on your images
Code:
var downloadLink = document.getElementById('button'); addListener(downloadLink, 'click', function() { ga('send', 'event', 'button', 'click', 'nav-buttons'); });
like explained in the google doc
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by Grass on topic How to add Google Analytics Event Tracking??

Posted 8 years 6 months ago #30175
Hey Ced,

can you tell me straight in which file i have to add this code?
I just find some guide for the asynchron code, but we use the universal.

I found this guide for example moz.com/ugc/tracking-fancybox-clicks-in-google-analytics but i am not sure where to add this lines? in the mediabox_ck.php or where? :)

THanks a lot
by Grass

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic How to add Google Analytics Event Tracking??

Posted 8 years 6 months ago #30220
please remind me on monday, I 'm actually working on the mediabox and I have to check the triggers for this

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.697 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1011 guests and 2 members online