AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
4.5K members online now
4.5K 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
star_border
Reply

Banner Click Tracking (Event) Problem

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

HI,

i am using following code to track banner clicks.

But unable to track events. where is the problem? 

 

<a href="http://www.tradeoptimize.com/services" onClick="ga('send', 'event', { eventCategory: 'homepagebanners', eventAction: 'click', eventLabel: 'banner1'});" title="First's banner"><img
src="http://www.tradeoptimize.com/assets/front/images/slider/bg2.jpg" rel="" width="780" height="510"> </a>

1 Expert replyverified_user

Re: Banner Click Tracking (Event) Problem

Top Contributor
# 2
Top Contributor
Hi Talha S,

There doesn't appear to be anything wrong with the code. Can you install GA Debugger to see if you get any hits being sent to GA when the image is clicked?? Also, you can share the site so that we can take a closer look.
Nicky Yuen, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.
Find me on: Google+ | LinkedIn

Re: Banner Click Tracking (Event) Problem

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Thank you Nicky for reply.
I do the same as stated, following is the few information i am getting, it means hits being sent to the GA. now what, Is event not tracking due to any conflict between applications...?

Hit ID : 1254183299
Visitor ID : 2089006838
Session Count : 152
Session Time - First : Mon Feb 01 2016 09:46:12 GMT 0500 (Pakistan Standard Time)
Session Time - Last : Fri Mar 25 2016 15:12:34 GMT 0500 (Pakistan Standard Time)
Session Time - Current : Sat Mar 26 2016 08:49:05 GMT 0500 (Pakistan Standard Time)
Campaign Time : Tue Mar 22 2016 10:38:52 GMT 0500 (Pakistan Standard Time)
Campaign Session : 139
Campaign Count : 57

Re: Banner Click Tracking (Event) Problem

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭

gaanalytic.pngSnapshot

this is what is showing.. what would be next step

Re: Banner Click Tracking (Event) Problem

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭
Hi, initially we were using Google analytic code, now i have change it to Universal Analytics code - after that few banners' event are being tracked. (on these banners i have updated the event code hard-core)

on different locations, i am using generating event code dynamically, and these banners are not being tracked on events..

Re: Banner Click Tracking (Event) Problem

Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭
Its working fine now. no issues