HOW TO add Google Analytics code to my site?

Talk and info about common issues

Moderator: alexandrleonenko

Site Admin
Site Admin
Posts: 5997
Joined: Jan 7th, '09, 23:18

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:

2. Write down/copy this code.

3. Open templates/{your template}/default.php file and paste this code before </body> tag.
google-analytics.png (13.78 KiB) Viewed 1123 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}”