Maintaining referring URL parameters when using Adobe Target Classic Redirect Offer. | Community
Skip to main content
June 28, 2016
Solved

Maintaining referring URL parameters when using Adobe Target Classic Redirect Offer.

  • June 28, 2016
  • 4 replies
  • 4056 views

Hi everyone

 

I have a question about including the referring URL parameters when using an Adobe Target Classic Redirect Offer.

 

I’m testing a redirect offer and have checked the option to include the referring url.  The problem is that when the referring parameter values are passed our colon symbols are being expressed as  %3A.  Is there a setting that we can use that would keep the : instead of the %3A?  Note that we often also switch from one subdomain to another as our test content is on a different Content Management System.

 

Example control URL

 

http://www.morethan.com/pet-insurance-quote?utm_campaign=PPC:PET:Brand:Google&gclid=ABC123&gclsrc=aw.ds

 

Example redirect destination with : to %3A replaced

 

http://beta.morethan.com/landingpage-test?utm_campaign=PPC%3APET%3ABrand%3A Google&gclid=ABC123&gclsrc=aw.ds

 

Any ideas or tips that I can try? Maybe there’s a config setting that I’m missing?

 

Thanks

Rik

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ryanr7

Hi Rik

As Mihnea is showing if you use an HTML offer and add a script to handle the re-direct you can preserve your non-URL-encoded colons. Here is a sample offer that will simply change the subdomain from 'www' to 'www2' in the url for the redirect. Hence, everything in the path and query portion will be maintained as is.

<script type="text/javascript"> var oldURL = document.location+""; var newURL = oldURL.replace("www","www2") window.location.replace(newURL); </script>

4 replies

MihneaD
Adobe Employee
Adobe Employee
June 29, 2016

Rick,

This offer code should do the trick: 

<script type="text/javascript"> var qs='';window.location.search?qs=window.location.search:''; window.location.replace('//www.morethan.com/pet-insurance-quote?utm_campaign=PPC:PET:Brand:Google&gclid=ABC123&gclsrc=aw.ds'+qs+''+window.location.hash+''); </script>

Mihnea Docea  |  Technical Support Engineer  |  Adobe Digital Marketing

June 30, 2016

Hi Mihnea

Thanks for your reply. Will this work for dynamic parameters? That is to say that ?utm_campaign=  is not a fixed value, and &gclid=  is unique to each inboud paid search link.   We always have 4 colon separators though e.g. ?utm_campaign=CHANNEL:PRODUCT:CAMPAIGNNAME:DOMAIN 

Appreciate your help.

Rik

MihneaD
Adobe Employee
Adobe Employee
June 30, 2016

Rick

I'm not sure since I don't know what custom code you have on the site to generate those URL parameters I can only recommend that you test it with your custom code and see if it works.

Mihnea Docea  |  Technical Support Engineer  |  Adobe Digital Marketing

ryanr7Adobe EmployeeAccepted solution
Adobe Employee
July 1, 2016

Hi Rik

As Mihnea is showing if you use an HTML offer and add a script to handle the re-direct you can preserve your non-URL-encoded colons. Here is a sample offer that will simply change the subdomain from 'www' to 'www2' in the url for the redirect. Hence, everything in the path and query portion will be maintained as is.

<script type="text/javascript"> var oldURL = document.location+""; var newURL = oldURL.replace("www","www2") window.location.replace(newURL); </script>