overwrite url

Bronze Contributor
Bronze Contributor

Good morning,

I would really appreciate if someone could tell me how can I owerwrite the URL of a hit that has been alredy sent.

I'm having some problems because in Adobe Analytics sometimes I one URL as two different ones: one, the "normal" URL; and other, the encoded URL.

 I have programmed a js code where I decode the URL's and I put it in the uTag Sync (Profile) but it is not working because Adobe takes this url before it is encoded. This is the code:


(function decodeURI() {

    var url = window.location.href;

    var url_dec = decodeURIComponent(url);

    url = url_dec;




Thank you in advance. Best regards,




overwrite url

Tealium Employee

Hi @mkdigital

I would recommend leaving URL as it is, and having your second variable as the decoded version, sent seperately. 
You could simplify your code to: 

var url_dec = decodeURIComponent(window.location.href);


From your post, I assume you are loading Adobe Analytics in utag.sync.js ?  If so, as long as this code is before it you should be able to pick up url_dec in the same way as any other javascript variable. 

Many thanks

Steve Lake

Connecting data systems since the 1980s.