Analytics
5.3K members online now
Understand information in your reports and troubleshoot reporting issues such as self-referrals, (not set) data, and inaccurate information
 
Guide Me
star_border
Reply

Leading slash, domain in page name, need help

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I'm using analytics on five separate sites. Four of the five run smoothly, but on the fifth I'm seeing something that I can't understand and can't fix. All my reports list pages that appear with a leading slash and include the domain name, like this: "/http://www.mkuznicki.com/-/galleries/archive/roller-coasters" 

 

Then, when I click on the icon to view that page, I get a "Page Not Found" error and this is in the address bar: "http://www.mkuznicki.com//http://www.mkuznicki.com/-/galleries/archive/roller-coasters"

 

I know I've got something set wrong somewhere, but I sure could use some help figuring it out. Thanks in advance!

1 Expert replyverified_user

Re: Leading slash, domain in page name, need help

Top Contributor
# 2
Top Contributor
Hi Mike,

Please check if you have your domain name in the View Settings in the Default Page field. If it's there you should remove it. Hope this helps.

Arnold Majlath, Google Analytics Top Contributor
Circle Me On Google+ | Visit me @ Redfly Digital

Re: Leading slash, domain in page name, need help

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Hi Arnold,

 

Thanks for the reply. I checked and that field is blank. Do you have any other ideas I can try?

 

Mike

Marked as Best Answer.
Solution
Accepted by Dave_Davis (Top Contributor)
December 2015

Re: Leading slash, domain in page name, need help

Top Contributor
# 4
Top Contributor

Hi Mike,

 

You are using the old ga.js tracking code with your Universal Analytics property. It is recommended to upgrade your tracking code to Universal Analytics. You can get the tracking code by going to Admin -> Property -> Tracking Info.


The problem is with your current custom tracking code is that it is setting the full URL as the utmp parameter value instead of only the page path.


You have a code snippet in one of the javascript files that is responsible for sending the full URL. I cannot tell the file name of the js file because it is cached from cloudfront.net. This is the code snippet that needs to be changed:

 

function(){
fi.ws.tracking.log("updateGoogleAnalytics: _trackPageview: "+document.location.protocol+"//"+document.location.hostname+fi.location.current),_gaq.push(["_trackPageview",document.location.protocol+"//"+document.location.hostname+fi.location.current]
)}

 Please ask your developer to change the code so only the page path is set.

Hope this helps, let me know if you have any questions.


Arnold Majlath, Google Analytics Top Contributor
Circle Me On Google+ | Visit me @ Redfly Digital

Re: Leading slash, domain in page name, need help

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭
Hi Arnold,

Thanks very much. I've passed this information along to the site developer, so hopefully he'll be able to implement the fix. I'll try to remember to come back here after the change is made to let you know how things worked out.

Mike

Re: Leading slash, domain in page name, need help

Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭
Hi Arnold,

It doesn't seem that this is the problem. Although the developer admits to not using the latest GA code, none of the other members using the site are having this issue. Any other thoughts?

Thanks,
Mike

Re: Leading slash, domain in page name, need help

Top Contributor
# 7
Top Contributor
Hi Mike,

Do you have any filters set up in your view that can affect the page paths? Please let me know.

Thanks

Arnold Majlath, Google Analytics Top Contributor
Circle Me On Google+ | Visit me @ Redfly Digital

Re: Leading slash, domain in page name, need help

Visitor ✭ ✭ ✭
# 8
Visitor ✭ ✭ ✭
Hi Arnold,

No, I have no filters in place right now while I try to get this sorted out. Also, per a suggestion from someone else, I tried populating the default page field as a test - that didn't have any effect one way or another. Where to next?

Thanks again,
Mike

Re: Leading slash, domain in page name, need help

Top Contributor
# 9
Top Contributor
Hi Mike,

As I mentioned earlier, you are sending the full URL as the utmp parameter value instead of only the page path. I created two Google Tag Assistant screenshots for you, one from your site and another from a site that is still using the old ga.js code. You can see that your site is sending the full URL to GA instead of the page path:

Your site: https://i.imgur.com/3hU6raL.png
Reference site: https://i.imgur.com/iILr9BW.png

If you cannot get the code changed on the website to make it to send the page path only you'll need to set up a search and replace filter in GA to remove the unwanted part.

https://support.google.com/analytics/answer/1034834?hl=en

Let me know if you have more questions.

Arnold Majlath, Google Analytics Top Contributor
Circle Me On Google+ | Visit me @ Redfly Digital

Re: Leading slash, domain in page name, need help

Visitor ✭ ✭ ✭
# 10
Visitor ✭ ✭ ✭
Hi Arnold,

Thanks for following up. Since the only issue here is that I get annoyed when I see that in my reports, I suppose the "search and replace" filter makes sense (there aren't any downsides to using that, are there?). Can you help me with the "search string" and "replace string" syntax?

Cheers,
Mike