So I have the parameter "referer" for the trafic origin :
And the parameter "site" for the site country:
But on the specific platform I am working with, only the "referer" parameter can be passed through navigation. (this app is remote and I cannot access the sources).
However, I need both parameter to be passed... my idea is to modify the "referer" parameter on the first page view so it becomes :
I tried this function :
<script>
function Replace() {
var paramSite = {{Get Site}};
var paramRef = {{Get Referer}};
var url = window.location.toString();
var newUrl = url.replace(/referer={{Get Referer}}/, "referer={{Get Referer}}-{{Get Site}}");
return newUrl.reload
}
<script>
It is working in test variable... but I fail to make it work on the site.