Installing Google Analytics

Discussion in 'Google Analytics' started by Clientchuk, Feb 23, 2010.

  1. #1
    I have a rather noobish question. I have read the faq but still it is unclear to me how to install google analytics code into my pages. They say I should add my code of analytics into every page I want to track. But how can I do it if I use a site with a database and there are no separate pages like page1.html, page2.html etc. I can only install the code into my index.php file in my root directory.
    Please give me some tips on this matter.
     
    Clientchuk, Feb 23, 2010 IP
  2. M A Kay

    M A Kay Active Member

    Messages:
    459
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    60
    #2
    I think you can just paste the code anywhere in you php file because it will be between <body> tag.

    Tell me if it works because I didn't try it.
     
    M A Kay, Feb 26, 2010 IP
  3. Clientchuk

    Clientchuk Active Member

    Messages:
    152
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    No, it was a bad idea because I have another script (as a module) n my site and this Analytics made it crush. So I had to download a special plugin for Google Analytics. Now it works fine...
     
    Clientchuk, Feb 26, 2010 IP
  4. M A Kay

    M A Kay Active Member

    Messages:
    459
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Okay, go on.
     
    M A Kay, Mar 6, 2010 IP
  5. gainsvillesun

    gainsvillesun Active Member

    Messages:
    424
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #5
    Please check out this video on installing google analytics, it's sharp and straight to the point : search youtube for google analytics installation.
     
    gainsvillesun, Mar 6, 2010 IP
  6. magda

    magda Notable Member

    Messages:
    5,197
    Likes Received:
    315
    Best Answers:
    0
    Trophy Points:
    280
    #6
    magda, Mar 7, 2010 IP