How to instally Google Analytics on WordPress

Discussion in 'WordPress' started by swaymedia, Aug 24, 2007.

  1. #1
    I need help, where do i actually past the analytics code on, like to which file... becuase index.php of my blog just has three lines of php code???

    help appreciated...
     
    swaymedia, Aug 24, 2007 IP
  2. manager

    manager Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try Exec-PHP plugin for Wordpress.
    http://bluesome.net/data/2005/08/exec-php.zip
    Code (markup):
     
    manager, Aug 24, 2007 IP
  3. alang

    alang Notable Member

    Messages:
    2,021
    Likes Received:
    220
    Best Answers:
    0
    Trophy Points:
    235
    #3
    install it on footer.php before </body> tag of theme file that you using.
     
    alang, Aug 24, 2007 IP
  4. Fisker

    Fisker Well-Known Member

    Messages:
    1,857
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    175
    #4
    i am unable to edit the file. There is no option avilablle to save the edited the version.
     
    Fisker, Aug 25, 2007 IP
  5. alang

    alang Notable Member

    Messages:
    2,021
    Likes Received:
    220
    Best Answers:
    0
    Trophy Points:
    235
    #5
    change your theme file permission to writable.
     
    alang, Aug 25, 2007 IP
  6. dcristo

    dcristo Illustrious Member

    Messages:
    19,776
    Likes Received:
    1,200
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    7
    #6
    Place it in the footer template
     
    dcristo, Aug 25, 2007 IP
  7. MarRome

    MarRome Peon

    Messages:
    865
    Likes Received:
    92
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I use this plugin

    Good Luck
     
    MarRome, Aug 25, 2007 IP
  8. sat123

    sat123 Banned

    Messages:
    1,600
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    0
    #8
    see refer to index.php file of your theme..it's in that themes folder(general index.php is not what we need...)..once i was confused in this way....
     
    sat123, Aug 25, 2007 IP
  9. ravianz

    ravianz Notable Member

    Messages:
    1,536
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    250
    #9
    its better to use analytics code in footer.php; simply paste into that file!
     
    ravianz, Aug 25, 2007 IP