Google Analytics Event Tracking

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
7/18/2013 9:10:28 AM
Gravatar
Total Posts 2

Google Analytics Event Tracking

Hello,

I am unable to get event tracking information from one of our websites. I have set up the event correctly in Analytics, and added code to the button on the website, but am unable to get this to connect. I did the same thing on a WordPress site to see if it was the code that was incorrect, but it worked immediately when adding to that platform.

Are there any code modifications that need to be made for the Mojoportal in order to track events properly in Google Analytics?

Thanks!

7/18/2013 10:04:49 AM
Gravatar
Total Posts 18439

Re: Google Analytics Event Tracking

please be more specific about what you're doing to track events and how and where you are putting a button, ie show your markup and describe where you are putting the markup

7/18/2013 10:12:47 AM
Gravatar
Total Posts 2

Re: Google Analytics Event Tracking

It is put in:

<div class=" modulecontent">
<div id="ctl01_mainContent_ctl01_divContent" class="slidecontainer">
<div class="subpage-content">

And the markup is:

<h2>Loan Application</h2>
<a href="https://www.24x7loans.com/CSEFCUAuto/default.aspx" onClick="_gaq.push(['_trackEvent', 'Loan Application', 'Click', 'Clicked',, false]);"> <img width="192" height="40" src="/Data/Sites/89/skins/cse-subpage/cse-images/button-apply-online-big.png" alt="Apply Online" /></a>

 

Is that what you're looking for, or something else?

7/18/2013 10:26:11 AM
Gravatar
Total Posts 18439

Re: Google Analytics Event Tracking

what you posted appears to have an extra comma between 'Clicked' and false

Using browser tools is the console showing any script error?

Also are you sure that the page has the google analytics async script?

You must sign in to post in the forums. This thread is closed to new posts.