How do I use Google Analytics with my website?

Requested and Answered by Bluenova on 2006/5/10 9:07:12

How do I use Google Analytics with my website?

Sign up for Google Analytics here

Once your account is activated, login to Google Analytics and setup your profile.

At the end of setting up your profile you will be given some code to add to your website, copy this code.

Edit this file on your website:
/*XOOPSINSTALL*/themes/*YOURTHEME*/theme.html

(/**/ denotes: This will be different for your website.)

Scroll to the end of the file and find:

Paste the code immediately BEFORE this tag. Save the file.

Browse to your xoops website administration go to:
System Admin >> Preferences >> General Settings
Scroll down to:
'Update module template .html files from themes/your theme/templates directory?' and select 'Yes'

Browse to a couple of pages on your website, then go back to Google Analytics and click 'Check Status'. The status should now say 'Waiting for Data'.

If it still says 'Tracking Not Installed' Google Analytics cannot see the code, please make sure you have followed all the steps above.

Go back to:
System Admin >> Preferences >> General Settings
Scroll down to:
'Update module template .html files from themes/your theme/templates directory?' and select 'No'

The setup is now complete. Google Analytics will continue to say 'Waiting for Data' for the next 12 to 24 hours, after that it will say 'Receiving Data' and you will be able to view your site stats.

This Q&A was found on XOOPS Web Application System : https://xoops.org/modules/smartfaq/faq.php?faqid=593