I want to add google analytic script in my main page in drupal.
Solution:
- Copy the google analytic script.
- Go to sites/all/theme/yourtheme/page-front.tpl.php
- Past the script before "close body" tag.
- Save and refresh the drupal main page.
- Right Click to see view source.
- Check that the google analytic script appear in the source page before "close body" tag.
- Finish.(Wait after 6 -24 hours to see the report)
0 comments:
Post a Comment