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

hass’s picture

Status: Active » Closed (duplicate)

Are you using a GA module version 1.6 or older with a .theme theme? Upgrade to 1.7, please. See #270745: Drupal.settings undefined in .theme

smitty’s picture

Status: Closed (duplicate) » Active

I 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.

hass’s picture

Hm - than we need to investigate... please provide a link to an example page where I can see and repro what's broken.

smitty’s picture

Category: bug » support
Status: Active » Fixed

Well, 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 $scripts in 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 the print $closure .

I changed the order and now the error is gone.

Thanks for your help! Sometimes I need being directed into the right direction!

hass’s picture

I think XSS filter have removed something important to understand... before the </body>-tag? Bad idea for many modules and never tested this myself yet :-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.