?
Solved

How can i check if event  google analytics is working

Posted on 2015-02-19
2
Medium Priority
?
85 Views
Last Modified: 2016-02-24
Hello i do have this function where i add to it a push event trigger for google analytics and i added the main script in the top of the page however the event isn't tracking

function egnyt_facebook(pixel,val, cny) {
  var cd = {};
  cd.value = val;
  cd.currency = cny;
  _fbq.push(['track',pixel, cd]);
}
//combine facebook and google
function egnyt_track(pixel, val, cny,type ,process,name){

	egnyt_facebook(pixel, val , cny);
	_gaq.push(['_trackEvent',type, process, name]);
       window.location='';


}
                                  

Open in new window

than i added
<A href="tolinks.html" onlcick="egnyt_track('6021900583991','1','USD','Shopping','purchase','COD')"/>go here</a>

Open in new window


So what's wrong and how can i test it if works
0
Comment
Question by:jaylab2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
Jeffrey Dake earned 2000 total points
ID: 40623896
What I ussually do is open up in chrome and use the developer tools to see if a request is being fired off for the tracking event.
0

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One event, two days, a great line-up of speakers, and 48% female presence. Still have no idea what I’m talking about?
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses
Course of the Month12 days, 21 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question