Error Page Tracker Is Undefined
Contents |
that make connections all over the world. Join today Download & Extend Drupal Core Distributions Modules Themes Google AnalyticsIssues "pageTracker is not defined" js
Ga Is Not Defined Universal Analytics
error when clicking links from within Flash SWF Closed (fixed)Project:Google AnalyticsVersion:5.x-1.6Component:CodePriority:NormalCategory:Support requestAssigned:UnassignedReporter:btullyCreated:October google tag manager ga is not defined 16, 2008 - 17:39Updated:November 11, 2008 - 18:51 Log in or register to update this issue I was
Uncaught Referenceerror: _gaq Is Not Defined
wondering if anyone has experienced this error and/or have a workaround. We have a Flash SWF on our home page that has a few embedded links. When the links google analytics ga is not defined within SWF are clicked, the link opens in a new window (that is blank), but in the parent window Firebug reports a javascript error: pageTracker is not defined: javascript:pageTracker._trackPageview('/faqs.html'); Is the jquery code that's applied to all tags on click not compatible with embedded links within SWF files? Comments Comment #1 hass CreditAttribution: hass commented October 16, 2008 at ga is not a function 9:26pm Status: Active ยป Postponed (maintainer needs more info) Please provide the URL to the page for verification... does your theme have a $closure variable in page.tpl.php? Log in or register to post comments Comment #2 btully CreditAttribution: btully commented October 17, 2008 at 9:00pm thanks for the response. page.tpl has the $closure var set and I can see that the googleanalytics.js is being written to the footer of the page. unfortunately the site is not public so I can't provide a URL :( Log in or register to post comments Comment #3 btully CreditAttribution: btully commented October 19, 2008 at 8:39pm i should clarify... the site is not public YET ;) still beta testing. we're currently have the GA plugin set to use legacy code rather than the latest ga.js. so my guess is that our SWF has embedded links that call to the new GA API. at least that's my theory. waiting to speak to Flash developer or get my hand on the src FLA to see if that's indeed the case. Log in
is the "_gat is not defined" javascript error, when you try to load a webpage that uses Google Analytics to track
Ga Event Tracking
visitors behavior. This happens because the visitor most likely has ga send event an AdBlocker installed (such as AdBlock Plus for Firefox), which filters out a javascript file from Google.
Ga Send Pageview
The code then tries to create an instance of an object it doesn't know (because the definitions are missing, since the file isn't included) and it throws https://www.drupal.org/node/322210 the "_gat is not defined" error. We wouldn't be showing the problem, if there weren't a solution of course. Just change your code to the following, which will check if the object actually exists before trying to create an instance of that object. The tracker won't fully work (but it didn't in the first place https://ma.ttias.be/_gat-is-not-defined-google-analytics-error/ anyway), but at least the user won't be shown the nasty javascript error. This only happens if you try to use the New Tracking Code (ga.js) (the new, and "improved" version) over the old Legacy Tracking Code (urchin.js). The bug's been around for a while, it's strange Google hasn't provided a clear fix for this yet ... Update: new Analytics code doesn't have this problem anymore. If you edit your Site-details in Google Analytics, and view your Google Analytics code, you'll see something similar to this: Error handling has prevented the error message to be shown. It is advised to use the code that Google provides, instead of the "hack" shown on top of this
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen