「參考頁面標籤」由駐留在網站伺服器上的「頁面標籤執行指令碼」組成,而呼叫時,會針對網站訪客要求的頁面收集所有用戶端資料。
您可以修改以收 Reference Page Tag Execution Script 集其他資訊,這些資訊可能會在要求收集與Adobe諮詢服務團隊的會議期間識別。 它的 Reference Page Tag Execution Script 大小相對較小,可避免在您的網頁上增加大量下載內容。
以下程 Reference Page Tag Execution Script 式碼會在名為的檔案中提供給您 zig.js:
//REFERENCE PAGE TAG
// CONSTANTS
var ct = "<img src=";
var cd = "[PATH_TO_WEB_SERVER]"; //this should contain the domain of
//the web site that will host the
//page tag
var cu = "[PATH_TO_WEB_PAGE_TAG_CODE]/zag.gif?Log=1";
//this should contain the full path to
//the zag.gif file (excluding domain)
//and include the query string of log=1
var ce = ">";
var c = {};
c["sw"] = screen.width;
c["sh"] = screen.height;
c["cd"] = screen.colorDepth;
var co = "";
for ( cKey in c ) {
co = co+"&"+cKey+"="+escape(c[cKey]);
}
document.write(ct,cd,cu,co,ce);
var d = {};
d["dt"] = document.title;
d["dr"] = document.referrer;
d["cb"] = new Date().getTime();
var vo = "";
if (typeof v != "undefined") {
for ( vKey in v ) {
vo = vo+"&"+vKey+"="+escape(v[vKey]);
}
}
for ( dKey in d ) {
vo = vo+"&"+dKey+"="+escape(d[dKey]);
}
document.write(ct,cd,cu,vo,ce);
//END REFERENCE PAGE TAG
若要透過使用來協助資料收集, Reference Page Tag請完成下列步驟:
建立或置入名為1像素乘1像素的影像檔, zag.gif 並放入Web伺服器上的目錄。
修改cd變數,以參考您網站的適當網域或參考檔案的Adobe受管 zag.gif 理服務網域。 通過執行檔案函式建立對檔案的 zig.js 引用。 例如:
//www.mysite.com
修改cu變數,以參考檔案位置的適當路 zag.gif 徑。 例如
/scripts
確保為和檔案建立適當的快取控 zag.gif 制標 zig.js 頭。