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. Other Discussions
  3. Article Writing
  4. Adding Google Analytics to a Code Project article

Adding Google Analytics to a Code Project article

Scheduled Pinned Locked Moved Article Writing
javascripthtmlcomtoolstutorial
3 Posts 3 Posters 0 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.
  • M Offline
    M Offline
    marcus obrien
    wrote on last edited by
    #1

    Hi, Out of interest has anyone added google analytics to an article they have written ? I have generated some html using the google analytics web site and was curious how to insert it into an article. Or is this thing frowned upon/banned ? Here is the HTML <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-69072944-4', 'auto'); ga('send', 'pageview'); </script>

    P C 2 Replies Last reply
    0
    • M marcus obrien

      Hi, Out of interest has anyone added google analytics to an article they have written ? I have generated some html using the google analytics web site and was curious how to insert it into an article. Or is this thing frowned upon/banned ? Here is the HTML <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-69072944-4', 'auto'); ga('send', 'pageview'); </script>

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Custom scripts in articles tends to be frowned upon. You'd have to seek permission from the site owners to allow you to include it.

      This space for rent

      1 Reply Last reply
      0
      • M marcus obrien

        Hi, Out of interest has anyone added google analytics to an article they have written ? I have generated some html using the google analytics web site and was curious how to insert it into an article. Or is this thing frowned upon/banned ? Here is the HTML <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-69072944-4', 'auto'); ga('send', 'pageview'); </script>

        C Offline
        C Offline
        Chris Maunder
        wrote on last edited by
        #3

        Sorry - no scripts in articles unless those scripts are specifically to illustrate a Javscript / CSS technique (and even then an editor would need to do it)

        cheers Chris Maunder

        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