Pass custom query Param in URL Destination

Avatar

Avatar

jayashar

Avatar

jayashar

jayashar

08-03-2019

Hi Adobe Team,

We have a need to pass the parent page URL as a custom query param in our URL destination. Our URL destination is fired from within the iframe dest5.html that is injected by Adobe on the parent page. We have tried capturing the referrer URL on server side but for all the requests received on server side for URL destination it logs referrer as dest5.html since URL destination is fired from dest5.html. Is there a way to pass the parent page's URL as a query param in our URL destination ?

Below are some of the options we have tried but it doesnt populate the referer URL value

https://our.site.com/pagename?queryParam1=queryParam1Value&queryParam2=queryParam2Value&rnd=randomNumberValue&ref=%h_referer%

https://our.site.com/pagename?queryParam1=queryParam1Value&queryParam2=queryParam2Value​​&rnd=randomNumberValue&ref=document.referer

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Varun_Kalra

MVP

Avatar

Varun_Kalra

MVP

Varun_Kalra
MVP

27-05-2019

Hi there,

I believe that is not allowed when your main page url and ifram URL are different.

Still you can check if that is possible by using some JS. I searched and found following few external resources:

javascript - Access parent URL from iframe - Stack Overflow

html - Passing a specific url query param from main url into the iframe url - Stack Overflow

html - How do I capture a url parameter from parent page and send to an iframe using Javascript? - S...

Let me know if it works for you or not.

Thanks,

Varun Kalra

Answers (0)