Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
EDC:
Download extensions for Elxis CMS
.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
google analytics code - also prevent be tracked
« previous
next »
Print
Pages: [
1
]
Author
Topic: google analytics code - also prevent be tracked (Read 3916 times)
maple
Full Member
Posts: 192
google analytics code - also prevent be tracked
«
on:
June 05, 2013, 15:47:31 »
Hi,
I just wanna paste the google analytics code. Is the best place just before the tag </head> in the index.php template file?
Any problems with APC or cache?
Or instead, where to place the code?
Code:
[Select]
<?php
include_once(
"analyticstracking.php"
)
?>
with google anatytics code pasted inside the file analyticstracking.php?
The best way?
thanks
«
Last Edit: June 06, 2013, 11:01:35 by maple
»
Logged
webgift
Elxis Team
Hero Member
Posts: 4193
Re: google analytics code
«
Reply #1 on:
June 05, 2013, 18:01:06 »
I think that the best way is the Asynchronous Syntax.
Here is a relative article about:
https://developers.google.com/analytics/devguides/collection/gajs/
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
maple
Full Member
Posts: 192
Re: google analytics code
«
Reply #2 on:
June 06, 2013, 11:00:56 »
thanks
Also I just added inside the file hosts located at C:\windows\system32\drivers\etc\hosts the following code:
127.0.0.1
www.google-analytics.com
127.0.0.1 ssl.google-analytics.com
This prevent that my own visits to my website be tracked in google analytics for a dynamic ip internet connection like mine.
For now, it seems that work well.
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
google analytics code - also prevent be tracked