Google Analytics.

Discussion in 'Internet Marketing' started by JPM, Aug 10, 2011.

  1. JPM

    JPM
    uix_expand uix_collapse
    Active Member

    Joined:
    Jan 10, 2011
    Messages:
    928
    Likes Received:
    179
    If I was to add code for google analytics on a normal site (i have only used WP previously, or vB) where and how should I do it?
     
  2. DaveCain

    DaveCain
    uix_expand uix_collapse
    Member

    Joined:
    Jul 5, 2011
    Messages:
    89
    Likes Received:
    27
    Hi JPM,

    You'll need to setup the site in Analytics as normal and at the last step it will give you some code which needs to go just before the </head> tag on every page of the site - so with this in mind you'll need access to the files and ftp details.
     
    • Like Like x 3
  3. JPM

    JPM
    uix_expand uix_collapse
    Active Member

    Joined:
    Jan 10, 2011
    Messages:
    928
    Likes Received:
    179
    Nice one, thanks!
     
  4. patrick0001

    patrick0001
    uix_expand uix_collapse
    Active Member

    Joined:
    Aug 14, 2011
    Messages:
    835
    Likes Received:
    186
    Some of the user recommend insert the script before end of body tag, which is correct?
     
  5. Fergal

    Fergal
    uix_expand uix_collapse
    Premium Member
    Premium Member

    Joined:
    Nov 18, 2007
    Messages:
    10,575
    Likes Received:
    1,165
    It should be placed "just before the closing </head> tag" on your site, as outlined by Google here.
     
    • Like Like x 1
  6. GekiDan

    GekiDan
    uix_expand uix_collapse
    Active Member

    Joined:
    Jun 11, 2009
    Messages:
    2,594
    Likes Received:
    218
    Yes, it should be posted before the </head> tag. If you put it on the end </body> tag, the visit will only be counted after site is fully loaded.
     
    • Like Like x 1
  7. patrick0001

    patrick0001
    uix_expand uix_collapse
    Active Member

    Joined:
    Aug 14, 2011
    Messages:
    835
    Likes Received:
    186
    Those user advise me insert it before </body> tag, so that it wont be interrupt with others javascript. Is this true?

    situation 1: if a site have jquery gallery, google fonts, and other css. If load GA first, will it be make delay to others component?

    situation 2: Inserting GA at header, is it possible for GA crash with other javascript?
     
  8. jennaentrust

    jennaentrust
    uix_expand uix_collapse
    New Member

    Joined:
    Aug 9, 2011
    Messages:
    12
    Likes Received:
    1
    Does anyone have any tips for someone just beginning to use Google Analytics?
     
  9. patrick0001

    patrick0001
    uix_expand uix_collapse
    Active Member

    Joined:
    Aug 14, 2011
    Messages:
    835
    Likes Received:
    186
    What is the tips you needed? I using GA for 4 years, may be I can help to answer some question.
     
  10. Fergal

    Fergal
    uix_expand uix_collapse
    Premium Member
    Premium Member

    Joined:
    Nov 18, 2007
    Messages:
    10,575
    Likes Received:
    1,165
    Unfortunately I don't know the technicalities of all that, however personally I would insert the code where Google say it should go, they obviously know the best location for it.
     
  11. Jerlene

    Jerlene
    uix_expand uix_collapse
    Active Member

    Joined:
    Feb 3, 2011
    Messages:
    1,415
    Likes Received:
    176
    You implement your Google Analytics code before your </body> tag.
     
  12. GamingOn

    GamingOn
    uix_expand uix_collapse
    Member

    Joined:
    Aug 10, 2011
    Messages:
    117
    Likes Received:
    11
    i usually just throw it in my header.php file of my wordpress blog.:D It confirms and works hope this helps. ^_^
     
  13. JPM

    JPM
    uix_expand uix_collapse
    Active Member

    Joined:
    Jan 10, 2011
    Messages:
    928
    Likes Received:
    179
    Posted this a whike a but thanks again guys.
     
  14. patrick0001

    patrick0001
    uix_expand uix_collapse
    Active Member

    Joined:
    Aug 14, 2011
    Messages:
    835
    Likes Received:
    186
    Agree with you, there must be some reason Google recommend that. Future I will insert it to header.
     
  15. etrade123

    etrade123
    uix_expand uix_collapse
    Member

    Joined:
    Aug 12, 2011
    Messages:
    48
    Likes Received:
    0
    When you create Google Analytics code after that you should be put this code in body part of any site. After that it show how many visitors has come and how many visitors fill your query forum. This is good way to Gain Visitors report.
     
  16. Jerlene

    Jerlene
    uix_expand uix_collapse
    Active Member

    Joined:
    Feb 3, 2011
    Messages:
    1,415
    Likes Received:
    176
    Thanks for the reiteration. lol:)
     
  17. Ken Peterson

    Ken Peterson
    uix_expand uix_collapse
    Member

    Joined:
    Jun 20, 2011
    Messages:
    213
    Likes Received:
    7
    Thanks for sharing useful information. I always make sure to bookmark pages like this because you know it will be useful in the future too. thanks again.
     

Share This Page