Adding Anaytics in Dynamic Website

Discussion in 'Google' started by eric_wahlberg, Dec 12, 2016.

  1. #1
    Hello Everyone,

    I have a dynamic website with URL mentioned below.

    Can anyone please tell me how can I add Google Analytics code in it.

    I don't know programming.
     
    eric_wahlberg, Dec 12, 2016 IP
  2. GTAce

    GTAce Notable Member

    Messages:
    1,389
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    210
    #2
    What do you mean when you say it is "dynamic"?

    When you go to set up Analytics, they'll give you a little snippet of javascript code to include in your website. It starts with <script> and ends with </script>. You need to copy and paste that anywhere into every page on your site. Hopefully you have some sort of header or footer file defined somewhere. It should ideally go in the footer, right before </body>...but it can really go anywhere, as long as it's on every page.
     
    GTAce, Dec 12, 2016 IP
  3. Envigo Digital

    Envigo Digital Member

    Messages:
    30
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #3
    It will depend what sort of Content Management System you are using. If it is custom coded then follow what GTAce has said above.
    For other CMS like drupal, wordpress etc you can either edit the code files - find the footer file and add the code before the </body> tag. Else you can add a text / script content block in your footer or your last sidebar using any available widget and paste the analytics code in the content block.
    else there are plugins available in most CMS where you provide the code in the plugin and it places it correctly in your code for you.
     
    Envigo Digital, Dec 12, 2016 IP
  4. BrijeshB

    BrijeshB Member

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #4
    It should go in the header tag. If I quote Google's exact words "Paste your tracking code snippet (unaltered, in its entirety) before the closing </head> tag on every web page on your site you wish to track." Though as you said, it can go anywhere in the page, but it is ideal in header because if you want to fire page load events it won't work because the script is not loaded.

    You can refer the Google's guide here: https://support.google.com/analytics/answer/1008080
     
    BrijeshB, Dec 16, 2016 IP
  5. cinemagicllc

    cinemagicllc Member

    Messages:
    97
    Likes Received:
    1
    Best Answers:
    2
    Trophy Points:
    38
    #5
    To find the tracking ID and code snippet:
    1. Sign in to your Analytics account.
    2. Select the Admin tab.
    3. Select an account from the drop-down menu in the ACCOUNT column.
    4. Select a property from the drop-down menu in the PROPERTY column.
    5. Under PROPERTY, click Tracking Info > Tracking Code.
     
    cinemagicllc, Jan 5, 2017 IP
  6. SEO.Student.15

    SEO.Student.15 Member

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    40
    #6
    This can be tricky depending on how your site was built especially if you are using templates. The thing to do really is google search using specifically what you have on your site. For example, "where to place GA analytics code for a wordpess site using optimizepress theme" Or something of that nature. If you say you are not technical or know programming that tells me you probably have a plug and play site. Chances are other people have asked the same thing and there is a youtube video on it.
     
    SEO.Student.15, Jan 5, 2017 IP
  7. LinkGenie

    LinkGenie Active Member

    Messages:
    794
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #7
    It is totally depend on the method used for the site. If you are using a template, you have the find the way of editing the template or way of adding GA code through the template control panel.

    Template based site like Wordpress, Joomla offers easy ways of adding GA code.

    If you have used PHP or any other coding language, just past the code in the footer of the HTML page.
     
    LinkGenie, Jan 17, 2017 IP