How can you place analytics on a sub page ???

Discussion in 'Google Analytics' started by munier, Apr 3, 2011.

  1. #1
    Hello,

    I know how you can place the Analytics code on the homepage ( pasting the code in the Header.php file ).

    But how can I place the code in a subpage ?

    I have a wordpress website, and I would like to know where the visitors come from on one of my category pages.

    Where do I have to place this code :S ?

    Can anyone please tell me :( ?

    Please help me out.

    Kind regards.
     
    munier, Apr 3, 2011 IP
  2. rgblogs

    rgblogs Active Member

    Messages:
    239
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    No need to paste any code!

    Go to Google Analytics settings and add new profile. Just add a filter in this newly created profile to let know google only to consider your category url......hurray
     
    rgblogs, Apr 3, 2011 IP
  3. Aquarezz

    Aquarezz Notable Member

    Messages:
    3,009
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    225
    #3
    Go to your template directory.
    Open footer.php
    Before </body>, paste your Analytics code.

    This will track your visitors on any page at your WordPress blog.
     
    Aquarezz, Apr 3, 2011 IP
  4. munier

    munier Member

    Messages:
    154
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #4
    Yes,

    But I don't want to track my visitors for any page.
    I only want to know where the traffic comes from for just one page :( ...

    I'll try what rgblogs said.
     
    munier, Apr 3, 2011 IP
  5. Aquarezz

    Aquarezz Notable Member

    Messages:
    3,009
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    225
    #5
    Log in to Analytics and you can there click on one of the pages and see the statistics for that page only.
     
    Aquarezz, Apr 3, 2011 IP
  6. maree

    maree Peon

    Messages:
    222
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It is so easy just open your site ftp and open html coding file and find header tag than you find header tag you past your code below header thats it
     
    maree, Apr 3, 2011 IP
  7. munier

    munier Member

    Messages:
    154
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #7
    Lol yes, I know how to place the code in header.php ...

    But I just want to place the code in category,,, only at example.com/category1

    I wanna know where the visitors come from, who visit that website.
     
    munier, Apr 4, 2011 IP
  8. Aquarezz

    Aquarezz Notable Member

    Messages:
    3,009
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    225
    #8
    It's on your Analytics page, mate.

    After logging in, at the right bottom you see 'content overview', click 'view report', at the left bottom you have the pages where you can also click on 'full report'.

    Voilà.
     
    Aquarezz, Apr 4, 2011 IP