SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict m2k's Avatar
    Join Date
    Oct 2003
    Location
    Philadelphia
    Posts
    209
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Google Analytics - URLs showing up as www.mysite.com/folder/htttp://www.mysite.com

    Please take a look at the attached screenshot of how stats for the same URLs are appearing in two different ways.

    The tracking script is in a header.php file, the same way I have it in many other sites without this issue:

    <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-15999563-1']);
    _gaq.push(['_trackPageview']);

    (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

    </script>
    </head>

    Any ideas on how I can fix this?

    analyticsurl.png

  2. #2
    Non-Member
    Join Date
    Sep 2012
    Location
    US, Irvine
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Delete the current one and update it again in analytics.

    Also, remove the analytics code from your website page and generate a new code from analytics then put it in website source code. Hope this will resolve the problem.

  3. #3
    SitePoint Addict m2k's Avatar
    Join Date
    Oct 2003
    Location
    Philadelphia
    Posts
    209
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not sure I follow what it is you're suggesting I delete.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •