参照ページタグ実行スクリプトの編集

最終更新日: 2022-10-05
  • 作成対象:
  • User
    Admin
重要

Data Workbench 提供終了のお知らせ.

参照ページタグは、Web サーバー上にあるページタグ実行スクリプトで構成され、呼び出されると、サイト訪問者がリクエストしたページのすべてのクライアント側データが収集されます。

次の項目を変更できます。 Reference Page Tag Execution Script Adobeコンサルティングサービスチームとの要件収集会議で特定できる追加情報を収集する。 この Reference Page Tag Execution Script はサイズが比較的小さいので、web ページへの大きなダウンロードの追加を避けます。

以下 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 ピクセル x 1 ピクセルの画像ファイルを作成または配置します。 zag.gif を web サーバー上のディレクトリに追加します。

  2. cd 変数を変更して、Web サイトまたはAdobe管理サービスドメインの適切なドメインを参照します。 zag.gif ファイルが参照されています。 ファイルへの参照は、 zig.js ファイル関数 次に例を示します。

    //www.mysite.com
    
  3. cu 変数を変更して、 zag.gif ファイル。 例:

    /scripts
    
  4. 適切なキャッシュ制御ヘッダーが zag.gif および zig.js ファイル。

このページ