TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 10:40:59 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,106
  • Total Topics: 21,213
  • Online today: 358
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 101
  • Total: 101

stats for visited pages

Started by osquitar, July 17, 2007, 12:18:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

osquitar

Is there any mod to look which pages the users visit?

IchBin

Not for TP. But there are 3rd party scripts and sites that will do this stuff for free.

osquitar

for example, google analiytics. Do you know where I must paste the code? In the template?

IchBin

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.

osquitar

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>

IchBin

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

osquitar

I did it. It seems to work. Thanks.