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 Install Google Analytics in WordPress Blog

Discussion in 'Google Analytics' started by saibal aditta, Sep 26, 2015.

  1. #1
    I am create a new in wordpress blog. but i don't know How to Install Google Analytics in WordPress Blog?
    SEMrush
     
    saibal aditta, Sep 26, 2015 IP
    SEMrush
  2. th.sigit

    th.sigit Well-Known Member

    Messages:
    178
    Likes Received:
    32
    Best Answers:
    1
    Trophy Points:
    135
    #2
    Dashboard * Plugins * Add New Plugins, search for Google Analytics. There will be plenty on there, you can choose any one that you like.

    Or edit your theme's header.php, look for something look like </head> (there will be only one), and put your GA script right before that.

    Note that some people prefers to put the script into footer, not header. If that's what you want, edit your theme's footer.php and put your GA script right before </body> (again, there is only one closing tag so you won't miss it).

     
    th.sigit, Sep 26, 2015 IP
  3. Blogzandstuff

    Blogzandstuff Greenhorn

    Messages:
    56
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    8
    #3
    Don't edit your actual theme as any changes you make will be lost next update - Never ever edit main code, always use a child theme for any editing of php or css. That way when the theme is updated you changes will still be there.
     
    Blogzandstuff, Sep 26, 2015 IP
  4. th.sigit

    th.sigit Well-Known Member

    Messages:
    178
    Likes Received:
    32
    Best Answers:
    1
    Trophy Points:
    135
    #4
    That is correct. I forgot to mention that.
     
    th.sigit, Sep 26, 2015 IP
  5. Blogzandstuff

    Blogzandstuff Greenhorn

    Messages:
    56
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    8
    #5
    i wasn't trying to undermine you advice, just reminding that a child theme is needed. No offence intended
     
    Blogzandstuff, Sep 26, 2015 IP
  6. th.sigit

    th.sigit Well-Known Member

    Messages:
    178
    Likes Received:
    32
    Best Answers:
    1
    Trophy Points:
    135
    #6
    Nope, not offended at all. Yours is a nice suggestion and I condone that :)
     
    th.sigit, Sep 26, 2015 IP
  7. saibal aditta

    saibal aditta Greenhorn

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #7
    Thank You dear
     
    saibal aditta, Sep 26, 2015 IP
  8. emily008

    emily008 Greenhorn

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #8
    If you don't want to add plugin then get the analytics code and go to Appearance > editor
    then in editor open header.php and place your analytics code there.
    That's it.
     
    emily008, Oct 7, 2015 IP
  9. King Manu

    King Manu Active Member

    Messages:
    149
    Likes Received:
    22
    Best Answers:
    4
    Trophy Points:
    75
    #9
    If you have Cloudflare enabled on your website, you can go to Apps in your Cloudflare Dashboard and add it from there. It's cool because you don't have to edit anything in your template or use a resource eating plugin. Just saying :)
     
    King Manu, Oct 7, 2015 IP