Author Topic: How I add tracking google analytics in phpdirector?  (Read 1840 times)

0 Members and 1 Guest are viewing this topic.

Offline Portugal

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
How I add tracking google analytics in phpdirector?
« on: October 24, 2009, 12:45:51 PM »
Hi people

How I can add tracking code google analytics in this script phpdirector?

I try to put in footer.tpl for get on all pages the tracking but not work :( Where I can add the code analytics for display in all pages (index and videos pages) ?

Thank you

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 406
  • Karma: 4
    • View Profile
    • FireDart
Re: How I add tracking google analytics in phpdirector?
« Reply #1 on: October 24, 2009, 01:28:23 PM »
In the footer.tpl is fine.

Place it right before the
Code: [Select]
</body>
</html>
tags.

This does not include the Admin section, but I don't think you care if it there our not.

Offline Portugal

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: How I add tracking google analytics in phpdirector?
« Reply #2 on: October 24, 2009, 11:46:23 PM »
FireDart I already try this but not work, when I view the source code in the site online in index and videos page, the code of google analytics not appears ...

Solution?

Offline Shave.

  • Development Team
  • Full phpd Member
  • *******
  • Posts: 80
  • Karma: 0
    • View Profile
    • PHPD Mods
Re: How I add tracking google analytics in phpdirector?
« Reply #3 on: October 25, 2009, 02:47:16 AM »
FireDart I already try this but not work, when I view the source code in the site online in index and videos page, the code of google analytics not appears ...

Solution?

Correct me if im wrong, but I thought google analytics is not supost to show up on you web pages all it does is gather the stats and then you go on your googles analytics page and it displays all the stats there??

Offline Chris (krissy)

  • Project Leader
  • Sr phpd Member
  • *****
  • Posts: 219
  • Karma: 1000
    • View Profile
    • PHPDirector
Re: How I add tracking google analytics in phpdirector?
« Reply #4 on: October 25, 2009, 10:40:42 PM »
Doesn't matter were in the code it is, the code will not show anything on your page. Just provide stats. :)

Offline svarog

  • phpd Basic Member
  • **
  • Posts: 30
  • Karma: 0
    • View Profile
Re: How I add tracking google analytics in phpdirector?
« Reply #5 on: March 11, 2010, 09:16:24 AM »
I have the same problem.
Just to say that the code must not show on the page but the problem is that when we put it in the footer.tpl this footer does not show at all. And google analytics does not see the code and can't get any stat.

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
Re: How I add tracking google analytics in phpdirector?
« Reply #6 on: March 11, 2010, 01:30:14 PM »
Are you using javascript? if so you must use

{literal}
like this

<script type="text/javascript">
      {literal}
javascript code........

{/literal}
</script>
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com

Offline svarog

  • phpd Basic Member
  • **
  • Posts: 30
  • Karma: 0
    • View Profile
Re: How I add tracking google analytics in phpdirector?
« Reply #7 on: March 11, 2010, 02:20:25 PM »
know that u sad i remember that there was a post about {literal}. Thanks to remain.   

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
Re: How I add tracking google analytics in phpdirector?
« Reply #8 on: March 11, 2010, 02:36:37 PM »
you weclome, did you get it to work?
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com

Offline svarog

  • phpd Basic Member
  • **
  • Posts: 30
  • Karma: 0
    • View Profile
Re: How I add tracking google analytics in phpdirector?
« Reply #9 on: March 11, 2010, 04:27:00 PM »
no :( it's now show on the source but google still not see it

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
Re: How I add tracking google analytics in phpdirector?
« Reply #10 on: March 11, 2010, 05:10:56 PM »
I have not played with google analytics  but I have gotton google adsense to work
http://phpdirector.co.uk/forum/index.php/topic,294.0.html
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com

Offline svarog

  • phpd Basic Member
  • **
  • Posts: 30
  • Karma: 0
    • View Profile
Re: How I add tracking google analytics in phpdirector?
« Reply #11 on: March 11, 2010, 09:03:14 PM »
well we must find some solution, but now i'm working on a curvycorners to get them work on ie8

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
Re: How I add tracking google analytics in phpdirector?
« Reply #12 on: March 11, 2010, 09:11:52 PM »
IF I have time I can play around with google analytics  on my test site and see if I can get to work. Not sure when..
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com

Offline Shave.

  • Development Team
  • Full phpd Member
  • *******
  • Posts: 80
  • Karma: 0
    • View Profile
    • PHPD Mods
Re: How I add tracking google analytics in phpdirector?
« Reply #13 on: March 12, 2010, 12:16:42 AM »
try using the php tags

{php}

{/php}

normally makes most things work

Offline svarog

  • phpd Basic Member
  • **
  • Posts: 30
  • Karma: 0
    • View Profile
Re: How I add tracking google analytics in phpdirector?
« Reply #14 on: March 12, 2010, 09:35:42 AM »
OK i'm confuse. I don't know when but analytics see my code. It start to receive data but when i make a check status it said that the code is not installed i think that {literal} tag works but i'm not sure. I will wait 1-2 days to see what is going to happen and i'll let you know.