By daviqh on
I wish to use google's new web stat's program with my drupal'd site, but it requires that I link to an external javascript file. Drupal doesn't recongnize the link in my xtemplate. Anybody know a way around this?
David
I wish to use google's new web stat's program with my drupal'd site, but it requires that I link to an external javascript file. Drupal doesn't recongnize the link in my xtemplate. Anybody know a way around this?
David
Comments
here's how I did it
in index.php after line
include_once 'includes/common.inc';
I added this line
change the account number to yours of course and fix the script tags.
--
Gautam Guliani
http://gautam.guliani.net/
Thanks alot, it is in the
Thanks alot, it is in the head, but not the very bottom like Google wants it, and they think it isn't installed. The site is www.mashband.org if you need to see the source. Any help would be accepted. Thanks alot,
David
Right before end of head
The code should go just before
</head>.See http://drupal.org/node/37582
UPDATE:
According to Matt Cutts (Google employee)
http://www.mattcutts.com/blog/google-analytics/#comments
--
Tips for posting to the forums
Yes, I know that it needs to
Yes, I know that it needs to be next to the
</head>, but however, it is generated from the index.php file where I put the line perscribed above, and it generates into the head of the xtemplate. Embedded javascript doesn't seen to work in the xtemplate, so I wish to know how to put it at the bottom of the head with the index.php .David