TinyPortal

Development => Resources => Topic started by: osquitar on July 17, 2007, 12:18:29 AM

Title: stats for visited pages
Post by: osquitar on July 17, 2007, 12:18:29 AM
Is there any mod to look which pages the users visit?
Title: Re: stats for visited pages
Post by: IchBin on July 17, 2007, 12:21:15 AM
Not for TP. But there are 3rd party scripts and sites that will do this stuff for free.
Title: Re: stats for visited pages
Post by: osquitar on July 17, 2007, 12:25:53 AM
for example, google analiytics. Do you know where I must paste the code? In the template?
Title: Re: stats for visited pages
Post by: IchBin on July 17, 2007, 12:30:56 AM
I don't know anything about the google analytics. What does the code do? I'm thinking if you're going to put any code in your template to track things you should put it in the index.template.php file as it loads everytime.
Title: Re: stats for visited pages
Post by: osquitar on July 17, 2007, 12:34:31 AM
google analytics ask me to paste the following code just before the </body> label:

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2244069-1";
urchinTracker();
</script>
Title: Re: stats for visited pages
Post by: IchBin on July 17, 2007, 12:45:47 AM
And did you try?

echo 'your code inbetween these apostrophes';

Be careful not to break any other echo statements. You can read more about echo in a little tutorial I did.

http://www.ichbin.us/index.php?topic=19.0
Title: Re: stats for visited pages
Post by: osquitar on July 17, 2007, 05:21:20 PM
I did it. It seems to work. Thanks.