WordPress.org

Ready to get started?Download WordPress

Forums

GA Google Analytics
Perfect script injection (3 posts)

5 stars
  1. artofadoweb
    Member
    Posted 5 months ago #

    Just installed it and the universal analytics code is exactly like GA describes it.
    No more and certainly not less.
    Can recommend this plugin.

    Grtz Peer

  2. artofadoweb
    Member
    Posted 4 months ago #

    Update.

    I checked the code supplied by Universal analytics again and there''s a little differcene. This is the actual script with the name of my website after the tracking code (see under). But when i look in teh source code of my page after using your terricaly easy plugin, I see the whole script exept the name of the website. Is there a way to make it an option in your plugin to give the name of the website to track?

    [ Moderator note: please wrap code in backticks or use the code button. ]

    <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', <strong>'UA-xxxxxxx-x', 'artofado.nl')</strong>;
      ga('send', 'pageview');
    
    </script>
  3. Jeff Starr
    Member
    Plugin Author

    Posted 4 months ago #

    Yes, I've added this to the list and will implement next update.

    Thank you for the feedback :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.