Closed (fixed)
Project:
Google Analytics
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2009 at 19:53 UTC
Updated:
5 Mar 2009 at 19:20 UTC
As soon as one or more of the options "Track outgoing links", "Track mailto links" or "Track download links" is activated there is an JS-Error: "Drupal is not defined".
Any Ideas?
Comments
Comment #1
hass commentedAre you using a GA module version 1.6 or older with a
.themetheme? Upgrade to 1.7, please. See #270745: Drupal.settings undefined in .themeComment #2
smitty commentedI am using the latest dev-version of the GA module (because of http://drupal.org/node/357944), which is the 1.7 branch. My theme is yaml for drupal 3.0.3.7 together with Theme Settings API 5.x-2.8 and I am using Jquery_update 5.x-2.0 (don't know if this might be related to http://drupal.org/node/356766). The code is inserted at the bottom of the page.
So I think I'm not using an "old-style .theme"?
Setting back to "active" to make it show up in your issue queue.
Comment #3
hass commentedHm - than we need to investigate... please provide a link to an example page where I can see and repro what's broken.
Comment #4
smitty commentedWell, if you can't reproduce the problem it must be in my installation.
So I did some investigation and found out, that the drupal.js was inserted after all the GA-script-stuff.
This was because I had shifted the
print $scriptsin my page.tpl.php directly before the -tag as suggested in http://drupalcamp.de/sites/drupalcamp.de/files/Front%20End%20Performance.... Not knowing that the GA module and other modules would output their scripts in theprint $closure.I changed the order and now the error is gone.
Thanks for your help! Sometimes I need being directed into the right direction!
Comment #5
hass commentedI think XSS filter have removed something important to understand... before the
</body>-tag? Bad idea for many modules and never tested this myself yet :-)