1.9K members online now
1.9K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
Guide Me

Event Tracking code with ga.js code

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello everyone!

I would need to track the clicks on some ad banners (not Adwords) and was thinking that event tracking could be the best way to go. Since I’m not too familiar with event tracking I was looking for some info, and first thing I found is that event tracking is now different with js.

The site I need to track is still using ga.js so my question is: if I use the event tracking code for ga.js will it still work or is it not going to work anyway, and I should migrate the site to .js first?

Thank you for your help! Smiley Happy


1 Expert replyverified_user
Marked as Best Answer.
Accepted by topic author Elio P
March 2016

Re: Event Tracking code with ga.js code

Rising Star
# 2
Rising Star

You can still find the ga.js event tracking guide here:

GA will still, for now, accept any hit that comes from legacy code like this. Personally I would migrate to GTM and use analytics.js as sometime in the coming years you will have to anyway.


Theo Bennett
Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn

Re: Event Tracking code with ga.js code

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Hi Theo,

thanks a lot for your prompt answer.

I will keep this in mind!

thanks again