Google Analytics: Save information and then redirect to forum

Discussion in 'Programming' started by Voimis, Dec 6, 2007.

  1. #1
    So my problem so far is that I don´t know when people leaves my pages and when they just go to the forum. I use google analytics in my pages but not in the forum and I´m wondering something like that:

    1. create "redirect_forum.php"

    Which includes:

    google analytics code and php redirect to the forum


    2. change forum-link in my pages to "redirect_forum.php"


    So "redirect_forum.php" collects information about people who enters to the forum and google analytics doesn´t collect just "immediately exit / bounce" for those people who enters to the forum from frontpage of my site.


    Should I do that? It should work I think but is there some different way to collect the information...


    Thanks!!
     
    Voimis, Dec 6, 2007 IP
  2. SolomonZhang

    SolomonZhang Peon

    Messages:
    523
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can't seem to follow your logic there.

    Why can't you just put the same analytic code on your forum script? On index.php or something.

    That way both will be considered as 1 thus the exit means exactly leaving your site whether the main site or the forum.

    I did that with my main site and blog. Both is considered as 1 by analytic.

    Regards,
     
    SolomonZhang, Dec 7, 2007 IP
  3. Voimis

    Voimis Peon

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    How can I add the analytics code to my phpBB2-forum?

    Thanks a lot!
     
    Voimis, Dec 8, 2007 IP