HOW TO add Google Analytics code to my site?

Talk and info about common issues

Moderators: ne_moj, zewa

administrator
Site Admin
Site Admin
Posts: 5930
Joined: Jan 7th, '09, 23:18
Contact:

HOW TO add Google Analytics code to my site?

Postby administrator » Oct 24th, '13, 06:50

Adding Google Analytics code is a straight simple operation.
These instructions are valid for all scripts, based on MicroCMS: MicroBlog, Hotel Site, Medical Appointment, Business Directory etc.

1. Generate the code on your Google Analytics account. If you don't have it - create it:
http://www.google.com/analytics/

2. Write down/copy this code.

3. Open templates/{your template}/default.php file and paste this code before </body> tag.
google-analytics.png
google-analytics.png (13.78 KiB) Viewed 663 times


4. Follow instruction on Google Analytics site to activate this code and wait at least 24 hours, before it will collect and show any relevant data on your account.

Return to “ApPHP MicroCMS {HOW TO}”