Closed (fixed)
Project:
Google Analytics
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Nov 2006 at 09:59 UTC
Updated:
12 Jul 2011 at 21:22 UTC
I have installed this module once earlier with success. I can't get it to work on another site, though.
What I've done:
activated the module in "modules"
updated the settings in "settings->google analytics" with my accountinfo
But it doesn't appear in the html-source of my pages.
What may be usefull to know: I use flexinode and the template node-flexinode-X.tpl.php that comes with flexinode. Maybe there goes something wrong? But what?
Thanks in advance!
Comments
Comment #1
buddaDoes your theme implement the
print $footer;? The module uses hook_footer(0 to add the javascript to the end of your pages.Comment #2
Pibu commentedAh, thanks! I missed the closuretag. I added this to my page.tpl.php just above the -tag:
print $closure;And now it works! Thanks!
Comment #3
Pibu commentedComment #4
(not verified) commentedComment #5
jurriaanroelofs commentedit should say in the readme that you need to use $footer in your template for this because on most websites I don't use this variable.
Comment #6
buddaIt's a standard part of the Drupal API. Fix your themes.
Comment #7
GarethWatkins commentedHi All
I had this problem on 5.1 - I found the problem was that when I extracted the tarball, the directory created in the module dir was google_analytics. I renamed it to googleanalytics and that fixed it.
Cheers
G
Comment #8
holydrupal commentedagain not working!
my theme has the "closure" and my UA-# is correct but code doesn't appear!
any idea?
Comment #9
brianV commentedI am having the same issue:
print $footerandprint closureare both in my theme; however, the Analytics code is not appearing for any roles (Admin, anon, auth).Comment #10
holydrupal commentedadding Google Analytics module>
set the settings in Google Analytics page >
use reuquire codes in theme >
> NOTHING added to your site!
Can someone help us?
Comment #11
salientknight commentedsame problem three years later....
Comment #12
hass commented