fr | en | es | de

Appendix: solutions to remove variables from URLs

Discover the latest tools in the
Analytics Suite, thanks to our new online help.


You can use the method described below for all types of marketing sources (sponsored links, email marketing campaigns, advertisement, affiliations etc).

If you use the method which was described previously (using the gopc.url method instead of go.url), any click made on the links of your marketing campaigns will lead traffic to your site by adding the xtor variable to the URL. The xtor variable may contain several different parameters.

For example, your link:


may become:[group_1]-[Var_1]-{ifContent:C}{ifSearch:S}-[{keyword}]&xtdt=3425243


If you do not wish to make this variable appear in your final URL, then you will need to go through a redirection page.




<script language="JavaScript1.1" type="text/javascript">


xtnv = document;

function xtclean(ch)

{ return ch.replace(/%3C/g,'<').replace(/%3E/g,'>').replace(/[<>]/g,'');}

function recupxloc(param)


var xturl = xtclean(,'='));

xtpos = xturl.indexOf(param+"=");

xtpos2 = xturl.indexOf("&xtdt=");

xtlen = (xtpos2>0) ? xtpos2 : xturl.length;

if (xtpos > 0)

{  chq = xturl.substring(1, xtlen);

    mq = chq.substring(chq.indexOf(param+"="), chq.length);

    return mq.substring(mq.indexOf("=")+1, mq.length).replace(/%26/g,'&').replace(/%23/g,'?');}

else{  return null; }


xtsite = "redirect";

xtloc = recupxloc("xtloc");



<script language="javascript1.1" type="text/javascript" src=""></script>


<body>Redirection en cours</body></html>

*For example:

A link on your ads which redirects traffic to:

will become (for measuring attribution clicks):


If you do not want to have the extra xtor variable in your URL (using the JavaScript redirection method), the link will then become:




http://logxxxx.xxxx/gopc.url?: URL of the server redirection website.

xts=: website ID.

xtor=: campaign ID (xtor chain).

xtloc=: the URL that JavaScript redirection is made to (making it possible to remove the variables in the URL). If it is used, it will be the URL of the landing page that the user will arrive at.

url=: the URL that server redirection is made to (URL that tracking variables will be added to).



The server redirects traffic to the content of the url variable (in this case, the file redirect.html) linking it with all of all the tracking variables contained before (including the xtloc variable).

The page "redirect.html" stores the total value of the xtor within the cookie and redirects traffic to the URL specified in the xtloc (which retrieves the value of the xtor placed in the cookie). Internet users then arrive on the landing page with a clean URL, which all tracking variables have been removed from.


- The URL variable must contain http:// (or https://).
- This URL variable must be placed in the last position.
- The xtloc variable (if it is used) must be placed just before the url variable
- If the xtloc’s URL already contains its own variables (idproduit and idart), then the ?s must be replaced with %3F and the &s with %26. (HTTP encoding)- The redirect.html file must be on the same domain as the URL which redirection is made to.