Hi,
I've been reading multiple posts and doing installation of patches...but for more than a week now, google analytics still shows traffic reports on my site as "zero"
The site went live on Jun 18, and as of today, with other tracking tools shows hits...(if not, at least from myself trying to maintain it)

This is the code I see:

<script type="text/javascript" src="http://www.google-analytics.com/urchin.js"></script>
<script type="text/javascript"><!--
_uacct = "UA-279xxx-7";__utmSetVar('');urchinTracker();
// --></script><noscript></noscript>

Looks like there is no general agreement on what version is the one that works, but after installing the 5.x-1.2
and not seen any data, I installed the 5.x-1.x-dev as of June 19 snapshot, and still nothing. Google analytics says they're receiving data....but no data so far, and other sites non-drupal based I operate are working fine.

Can somebody please help and let me know what could be the problem?
Thanks
Carlo

http://www.simtracables.com

Comments

budda’s picture

Does the JavaScript code generated by the module match with the same code you inserted in to your other non-Drupal sites 9which are working) ?

blksheep’s picture

Hi,
No...it does not match...
In my other non Drupal sites I inserted the code manually...and it's just the Google suggested code:

<script src="http://www.google-analytics.com/urchin.js" type=text/javascript>
</script>

<script type=text/javascript>
_uacct = "UA-27xxx-4";
urchinTracker();
</script>

the site is the following:
http://www.pgrei.com

Thanks
Carlo

Ennox’s picture

I have the same problem with the version 1.2. The version 1.0 is working.

The difference of the code block is html comment character:

<script type="text/javascript" src="http://www.google-analytics.com/urchin.js"></script>
<script type="text/javascript"><!--
_uacct = "UA-279xxx-7";__utmSetVar('');urchinTracker();
// --></script><noscript></noscript>

This code is comment between the character

<!--

and

-->

.

I have delete this in the modul and tomorrow i can say is working.

budda’s picture

Status: Active » Fixed

The WAI rubbish caused this mess. So i've removed the suggested items.

I've also made the segmentation variabvle only appear in the JScript if there are profile fields to track.

Check out dev release soon.

Ennox’s picture

Where is the new version?

Or Dev-Build?

budda’s picture

Its the dev version for today (4th July)

Ennox’s picture

I have download form this link http://drupal.org/node/110351.

But the file googleanalytics.module is from 05/13/2007 with size 7.215 bytes

budda’s picture

I just downloaded it and got // $Id: googleanalytics.module,v 1.14.2.5 2007/07/04 10:00:38 budda Exp $ so it's a local problem for you.

jmary’s picture

Version: 5.x-1.x-dev » 5.x-1.2
Status: Fixed » Active

The code :

Definitely doesn't work with Firefox on Linux systems.

The workaround consists in removing the html comment code in the source. Then it works and doesn't change the status of the WAI compliance.

budda’s picture

Version: 5.x-1.2 » 5.x-1.x-dev
Status: Active » Fixed

Please ensure you download the right version - 5.x-1.x-dev as this DOES NOT HAVE THE HTML COMMENT CODE IN IT ANYMORE, as mentioned in an earlier comment.

See the code for yourself at.

$script .= '<script type="text/javascript">' . "\n_uacct = \"".$id."\";{$segmentation}{$codesnippet}urchinTracker();\n</script>\n";

Anonymous’s picture

Status: Fixed » Closed (fixed)