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?

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.

Not sure I follow what it is you’re suggesting I delete.