www.evidhyashala.com provides free free mock test , free online exam , online exam free test series , online exam free , Online Test Exam Series , free exam papers past papers , online exam form ,Online Test Series for Exam Prep. Free Mock Tests - for All govt jobs. Bank PO, Clerk, SSC CGL, CHSL, JE, GATE, Insurance, Railways, IBPS RRB, SBI, RBI, IPPB, BSNL TTA

Sponser Link

know more info pls click here

Google Analytics Flash(ActionScript 2) track GETURL from anchor and GA.

Google Analytics Flash(ActionScript 2) track GETURL #anchor.

track a #anchor for example (mysite.com/#about) the anchor is being called by Flash AS2. how can i tell GA to track hits on this page?

I tried the GETURL method in flash:

getURL("javascript:_gaq.push('www.dropusinit.com/#switzland');");

which apprently used to work, but since they've made changes this doesn't... during tests firefox navigated to a page with the url javascript:_gaq.push('www.dropusinit.com/#switzland'); was strange.

Do I need to even use flash to ask GA to track the anchor? Is there a way i can point GA to track all anchors that are part of my page?

It seems FireFox / Flash has an issue with this newer tracking could be the .push part of it.

How I have gotten around this, is to have another function in the HTML callGoogleAnalytics(); and call that function from the Flash. If needed you can pass the function a param as well.

HTML

function callGoogleAnalytics(){
   _gaq.push(['trackPageview', '/#switzland']);
}

Flash

getURL("javascript: callGoogleAnalytics();");

and Try this


getURL("javascript:_gaq.push(['_trackPageview','/#switzland']);");

Of course the page underneath should have Google Analytcs Tracking Code already installed and using the async syntax.

0 comments:

Popular Posts