Bonjour,

J'essaie de comprendre tous les scripts existants sur quelques sites Web dont je m'occuppe mais je me pose des questions ...

Il semble qu'il est important de mettre ce script en début de page :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
 
 <%
//SDC (SmartSource Data Collector) v1.1 <Header> Code
 
//_asp2js will pass data from server side script to client side script
var _asp2js = "";
 
try {
	//check for a WT_* parameter
	var strCookie = new String(Request.ServerVariables("QUERY_STRING"));
	if (strCookie.indexOf("WT_") > -1) {
		var objRegEx = /WT_[^=]+/g;
		var arrWTTags = strCookie.match(objRegEx);
		for (var i=0; i < arrWTTags.length; i++) {
			_val = new String("" + Request.QueryString(arrWTTags[i]));
			if (_val != "undefined") {
				arrWTTags[i] = new Array(arrWTTags[i], _val);
			}
		}
		//write session cookie
		if (arrWTTags.length) {
			//Response.cookies("WT").Domain
			//Response.cookies("WT").Expires =  //Session cookie
			//Response.cookies("WT").Path
			Response.cookies("WT").Secure = (Request.ServerVariables("HTTPS") == "on") ? true : false;
			for (var i = 0; i < arrWTTags.length; i++) {
				Response.cookies("WT")(arrWTTags[i][0]) = arrWTTags[i][1];
			}
		}
		_asp2js += "WT_n=3&";
	}
	// create querryString from cookie
	if (Request.Cookies("WT").HasKeys) {
		var e = new Enumerator(Request.Cookies("WT"))
		for(;!e.atEnd();e.moveNext()) {
			_asp2js += e.item() + "=" + Request.Cookies("WT")(e.item()) + "&";
		}
	}
	else  {
		//WT_vp=1 mean session is not link to a campaign
		_asp2js += "WT_vp=1&"
	}
 
	//flag rep & investors
	_asp2js += ("" + new String(Request.Cookies("status")) == "OK") ? "WT_t=2&" : "WT_t=1&";
	//get page URL
	_asp2js += "WT_url=" + new String(Request.ServerVariables("URL")) + "&";
	//get page REFERRER
	_asp2js += "WT_referrer=" + new String(Request.ServerVariables("HTTP_REFERER")) + "&";
} 
catch(exception) {
	//_asp2js = exception.description;	
	; //silent errors
}
%>

et celui-ci en bas de page :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
 
<%
//SDC (SmartSource Data Collector) v1.1 <Body> Code
try {_asp2js = _asp2js;
}
catch(exception) {
	_asp2js = "_asp2js=null&";
}
%>
<script language="javascript">
<!--
	_param = "<%=_asp2js%>cacheBuster=" + Math.round((new Date()).getTime()/1000);
	document.write('<tacking><img border="0" name="dcsimg" id="dcsimg" width="1" height="1" src="/images/tracking/sdc.gif?' + _param + '" alt="dcs" /></tacking>');
//-->
</script>
<noscript>
	<tacking><img border="0" name="dcsimg" id="dcsimg" width="1" height="1" src="/images/tracking/sdc.gif?<%=_asp2js%>js=nojs" alt="dcs" /></tacking>
</noscript>
Mais ça fait quoi exactement ?

Merci !