Page URLs with double slashes under Workspace

Avatar

Avatar

prathap08

Avatar

prathap08

prathap08

01-10-2020

Hi,

 

We are able to see different version of URLs. In workspace,

 

Example: www.example.com/home.html > proper one

 

we also able to see www.example.com//home.html (with double slash because of Typed/Bookmarked dimension majorly. Some traffic from referring domains too. It not only displaying for home page. It is coming for category and sub category pages too. 

 

NOTE: Adobe image request/call is happening even with double, triple, infinity slash for all the page in the website. So that we able to receive data to ADOBE workspace with different version of URLs for same page.

 

I hope, this can be avoided by configuring under DOMAIN level going forward. Example kind of 301 permanent redirection or any other URL structure setup. Please let us know whether I'm on the same page or is there anything can be done under tool end too. I hope CMS- domain level change is pretty straight forward to avoid this type of issue even with other tools.

 

Thanks!

 

@yuhuisg can't paste the screenshot as this for customer. I can say

Page URL (Prop 2)

 

https://www.example.com/home.html 

https://www.example.com//home.html

https://www.example.com//category.html

https://www.example.com/category.html

its coming irrespective to the variables. If you drag this under Page Name Evar, that time also you get these URL's

I investigate where this comes from, it mainly referring to typed/bookmark. I hope it can be rectified using permanent fix under the domain level. By doing redirection etc..

 

 

 

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar

jkm-disco

Avatar

jkm-disco

jkm-disco

14-10-2020

Hi @prathap08 ,

If you are setting it into prop2 with document.location.href you can use the following javascript to set the variable:

s.prop2 = document.location.href.replace(/([^:])\/\/+/g,"$1/");

 This will replace every instance of repeated "/" unless directly following a ":".

 

Note: If you are use to using the normal "Set Variable" action, and if this is being used for click tracking, and if you go with this custom code option, be sure to update s.linkTrackVars .

Avatar

Avatar

yuhuisg

Avatar

yuhuisg

yuhuisg

02-10-2020

What URL dimension in your reports?

In my case, I track the page URL to a prop. When I broke down the Referrer dimension by that prop, I got the correctly formatted URLs. When I report on the prop itself, I also get the correctly formatted URLs.

Avatar

Avatar

jkm-disco

Avatar

jkm-disco

jkm-disco

01-10-2020

Hi @prathap08 ,

 

This is a hack, but if the bad data is already collected you could clean it up using a classification.

That is, for each domain, create a Path variable and define it using classification rule builder similar to the following:

\/*([^\?]*)\??.*$

 Mapping $1 to the new variable.