Hello there,

I have tried the module with a few different themes and it works great with pushbutton, but I can't see the code in any other theme including bluemarine. I currently have it put in by hand, but it would be nice to have the extra features that the module includes. Any help would be great.

B

Comments

chickenmcnoggin’s picture

http://www.bpshoe.com

I am using andreas03 theme

dvessel’s picture

I'm pretty sure you have to have <?php echo $closure ?> right before the closing </html> tag in your theme. That's where the module is likely to print out the extra javascript to trigger analytics.

joon

wernst’s picture

I can confirm that the theme Andreas03 does NOT work with the Google Analytics module. I am using a modified version of Andreas03 at http://www.wisellama.com/ and Google can't find the Analytics code when I have it enabled.

I can switch to BlueMarine and then Google and track the Analytics code. I switch back and it can't.

I'm going to see what can be done, and post a bug report...

-Warr

wernst’s picture

Joon,

Yup, that fix did it, but the positioning you suggested is wrong.

So the fix is to open page.tpl.php. Add this line:

<?php echo $closure ?>

above the second line from the bottom that says:

</body>

And then the module works. I'll post this in the bug list for Andreas3

-Warr

dvessel’s picture

Whoops, that's what I meant. All themes should have that in there.

joon

chickenmcnoggin’s picture

Hey guys,

It worked great, thanks for the help!

http://www.bpshoe.com

wmfinck’s picture

This is exactly what I needed to fix this problem with my site using the Sky theme.

The page in question already had the code print $closure; above the body tag, and I left that there, adding echo $closure right below it. Worked like a charm!