Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Google Analytics Question

Google Analytics Question

Scheduled Pinned Locked Moved Web Development
questionjavascriptcomannouncement
4 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jassim Rahma
    wrote on last edited by
    #1

    Hi, I would like to ask about Google Analytics.. I have seen many different ways to implement the tracking code, the standard way, the ga.js, the analytics.js.. what are the difference between these ways and what's best? Thanks, Jassim

    Technology News @ www.JassimRahma.com

    P S U 3 Replies Last reply
    0
    • J Jassim Rahma

      Hi, I would like to ask about Google Analytics.. I have seen many different ways to implement the tracking code, the standard way, the ga.js, the analytics.js.. what are the difference between these ways and what's best? Thanks, Jassim

      Technology News @ www.JassimRahma.com

      P Offline
      P Offline
      pitechindore
      wrote on last edited by
      #2

      In my opinion Google analytic code should be on the top of the page, just before the . There is no need to put it in an individual JS file until and unless you are loading that file asynchronously. It would be a little bit pointless to put it in a separate JS file. :)

      1 Reply Last reply
      0
      • J Jassim Rahma

        Hi, I would like to ask about Google Analytics.. I have seen many different ways to implement the tracking code, the standard way, the ga.js, the analytics.js.. what are the difference between these ways and what's best? Thanks, Jassim

        Technology News @ www.JassimRahma.com

        S Offline
        S Offline
        Shane Lessard
        wrote on last edited by
        #3

        I always put it in my 'footer.php' file, right before the tag, where I put most of my scripts. Putting it at the end let's you load scripts after everything else, instead of holding up the rendering of the rest of the page. Though I know that's not really necessary thanks to some great HTML5 attributes for script tags, I am still in the habit. I see no reason to include it as an external file. And I include my footer.php file in every page on most sites, anyway. But if I wasn't building a website in pieces like that, and each page had it's own footer, I guess I would consider an external file to make it easier than pasting it on every page.

        1 Reply Last reply
        0
        • J Jassim Rahma

          Hi, I would like to ask about Google Analytics.. I have seen many different ways to implement the tracking code, the standard way, the ga.js, the analytics.js.. what are the difference between these ways and what's best? Thanks, Jassim

          Technology News @ www.JassimRahma.com

          U Offline
          U Offline
          User 11305878
          wrote on last edited by
          #4

          There are several methods adopted for Google analytic,and if you need the proper answer you can better search on the best multispecialty hospital in kerala .

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups