Analytics
2.2K members online now
2.2K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

experiment button clicks not recorded

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello,

I set up an experiment using a button click as my goal and it is not being recorded

My button code is this


<a class="BannerButtonLinkFree-lock" href="https://secure.tritoncanada.ca/UserVerifiedRequest/initializepubliccheck" title="Get a Police Check Now" itemprop="url" onclick="__gaTracker('send', 'event', 'link', 'click', 'police-check';">Get Checked Now!</a>

 

My goal settings are

Category = link
Action = click
Label = police-check
value =

 

I used the google tag inspector and It does not even list my onclick="__gaTracker('send', 'event', 'link', 'click', 'police-check';" code

1 Expert replyverified_user

Re: experiment button clicks not recorded

Top Contributor
# 2
Top Contributor
Hi Justin,

You are using the old ga.js tracking code on your site. To set up event tracking for ga.js check this document:
https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide?hl=en

I would recommend to upgrade to Universal Analytics. You can find the tracking code in Admin -> Property -> Tracking Info -> Tracking Code.

To set up event tracking for Universal Analytics please check here:
https://developers.google.com/analytics/devguides/collection/analyticsjs/events

Hope this helps.

Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital