Google analytics code *shows* on front page (top left)

Discussion in 'Squirrel WordPress Theme' started by lnmarketingservices, Jun 3, 2014.

Thread Status:
Not open for further replies.
  1. lnmarketingservices

    lnmarketingservices Member

    Joined:
    Jan 19, 2013
    Messages:
    46
    Likes Received:
    0
    hi there,

    the Google analytics code *shows* on front page (top left) of my web page

    is there some way to eliminate this while keeping the code in use

    please see attached screen capture Shade Sails of Florida-google-analytics.png
     
  2. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    I think you have not added complete code in the theme options panel.
    Please check demo analytic code given below.

    Code:
    <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-xxxxxx-x', 'yoursite.com');
      ga('send', 'pageview');
     
    </script>
    Generate complete code and paste it. Currently you are pasting UA only.

    Thanks & Regards
    Nitesh Raghuwanshi
     
  3. lnmarketingservices

    lnmarketingservices Member

    Joined:
    Jan 19, 2013
    Messages:
    46
    Likes Received:
    0
    Thankyou. This fixed the problem.
     
Thread Status:
Not open for further replies.

Share This Page