dli-iclinic / gaforflash

Automatically exported from code.google.com/p/gaforflash
Apache License 2.0
0 stars 0 forks source link

tracker = new GATracker( this, "window.PageTracker", "Bridge", false ); should be window.pageTracker #53

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
On this page 
http://code.google.com/apis/analytics/docs/tracking/flashTrackingIntro.html

It says....

"The Google Analytics Tracking Code object already exists on your page with
its own name, such as pageTracker. In this case, you provide the full DOM
reference to the tracking object. For example, if your object is called
pageTracker, you would reference that object in your code as
window.PageTracker. For example, the following code snippet illustrates how
this would be configured using the Adobe Flex environment with ActionScript 3:"

"tracker = new GATracker( this, "window.PageTracker", "Bridge", false );"

I think the standard Analtyics JavaScript code declares a var called
pageTracker not PageTracker. 

What is the expected output? What do you see instead?

As a result you example code throws and "JS object not found" exception.

Original issue reported on code.google.com by graeme.h...@gmail.com on 17 Aug 2009 at 2:13

GoogleCodeExporter commented 9 years ago
That's not javascript at all.. that's actionscript meant for going into 
Flash/Flex AS3 projects.

Original comment by wfsu.geo...@gmail.com on 17 Aug 2011 at 5:15