https://www.icyphoenix.com/viewtopic.php?f=35&t=7003
-----------------------------------
Freddone
Wed 03 Mar, 2010 18:15

Problem With Google Analytics
-----------------------------------
Hello everyone,
I have a problem with google analytics.

From acp i placed the code copied from goolge in the textbox:

[quote]....  
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
 .....
[/quote]

and I like prints in the html code:

[quote]....
<script type=\"text/javascript\">
var gaJsHost = ((\ "https: \" == document.location.protocol)? \ "https: / / ssl. \": \ "http://www. \"); .....
[/quote]

Can someone help me? 

Tnx :)


-----------------------------------
alexlehm
Wed 03 Mar, 2010 21:51

Re: Problem With Google Analytics
-----------------------------------
this looks like an issue with php magic_quotes, there are quite a few php programs that do not work with magic quotes enabled.


-----------------------------------
TheSteffen
Thu 04 Mar, 2010 01:16

Re: Problem With Google Analytics
-----------------------------------
I had the same problem... but I don't know how I fixed it.

A workaround is:

OPEN [b]templates\default\overall_footer.tpl[/b]
FIND
[codeblock]{GOOGLE_ANALYTICS}[/codeblock]
REPLACE WITH
[codeblock]Inser the code you get from Google Analytics[/codeblock]

Clean cache after it ;-)


-----------------------------------
keteflips
Tue 13 Mar, 2012 18:14

Re: Problem With Google Analytics
-----------------------------------
Same problem here.
I fixed it by adding the code to the overall_header.
But if IP have a section to add this code I think this might be a bug.

Thanks.


-----------------------------------
Mighty Gorgon
Tue 03 Apr, 2012 23:23

Re: Problem With Google Analytics
-----------------------------------
This should have been fixed in latest dev release.


