Solved

How can i check if event  google analytics is working

Posted on 2015-02-19
2
71 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
2 Comments
 
LVL 10

Accepted Solution

by:
Jeffrey Dake earned 500 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Read about the 3 stages of the buyer's journey: awareness, consideration, and decision.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now