1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to add Google analytic code in Wordpress?

Discussion in 'Blogging' started by mikey123, Dec 31, 2014.

  1. #1
    Hi Friends,,,
    I'm confused to adding Google analytic code in my Wordpress blog, please suggest me that how to add this code.
     
    mikey123, Dec 31, 2014 IP
  2. Asher ross

    Asher ross Active Member

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    63
    #2
    Hi,
    Add your Google analytic code in header.php before </head> tag.
     
    Asher ross, Dec 31, 2014 IP
  3. SuperiorWD

    SuperiorWD Greenhorn

    Messages:
    74
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    23
    #3
    You can either get a plugin to do this and you copy-paste the tracking code, or you go to APPEARANCE > EDITOR > footer.php and BEFORE </body> add the code. I usually place it in the footer lately, I like it more than in the header.
     
    SuperiorWD, Dec 31, 2014 IP
  4. 000karim

    000karim Active Member

    Messages:
    259
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    80
    #4
    000karim, Dec 31, 2014 IP
  5. quotealex

    quotealex Active Member

    Messages:
    90
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    50
    #5
    Get the WordPress Google Analytics plugin.
     
    quotealex, Dec 31, 2014 IP
  6. atmosfe

    atmosfe Member

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    33
    #6
    Try checking the theme settings you should see a space for analytics or install use "all in one seo pack" it has a space for analytics in the settings
     
    atmosfe, Dec 31, 2014 IP
  7. kulwantnagi2003

    kulwantnagi2003 Active Member

    Messages:
    191
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    90
    #7
    kulwantnagi2003, Jan 5, 2015 IP
  8. Richard Villapando

    Richard Villapando Greenhorn

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #8
    I have to agree with most of the nice people here.

    Get the plugin (much easier and safer): https://wordpress.org/plugins/wp-google-analytics/
     
    Richard Villapando, Jan 21, 2015 IP