Announcement

#1 2010-08-24 10:56:50

Hamdi GÜMÜŞ
Guest

[resolved] Google Analytics

how can i activate or load Google Analytics code into my pwg. i tried it with Statistics plugin, but i couldn't get any data.

 

#2 2010-08-24 18:15:56

rio
Piwigo Team
Paris
2006-07-24
1430

Re: [resolved] Google Analytics

You can use the old script

Code:

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-0000000-0");
pageTracker._trackPageview();
} catch(err) {}</script>

(replace UA-0000000-0 with your own Google Analytics identifier)
[Bugtracker, ticket 1758, not a bug] Statistics plugin doesn't keep Google Analytics script

:-))


-> /<Ä®¿M <-
http://riohome.free.fr
Il forum è anche in ITALIANO

Offline

 

#3 2010-08-31 01:23:49

Hamdi GÜMÜŞ
Guest

Re: [resolved] Google Analytics

it worked. thanks a lot :))



rio wrote:

You can use the old script

Code:

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-0000000-0");
pageTracker._trackPageview();
} catch(err) {}</script>

(replace UA-0000000-0 with your own Google Analytics identifier)
[Bugtracker, ticket 1758, not a bug] Statistics plugin doesn't keep Google Analytics script

:-))

 

#4 2012-06-27 10:06:23

skpManiac
Member
England
2012-02-15
140

Re: [resolved] Google Analytics

Which file does this go in and where should I place it

Thanks


Share & Enjoy

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact