LoginSignup
2
0

More than 5 years have passed since last update.

1x1透過Gifによる広告のインプレッション計測

Posted at

1x1透過Gifによるインプレッション計測を行うためのメモ。まず、DNS設定でb.danshihack.comをロギング用のサーバーのIPアドレスに飛ぶばすように設定。次にサーバー側で1x1透過Gifを設置して、rooting設定する。

server {
    listen      80;
    server_name b.danshihack.com;
    root        /var/www/vhosts/b.danshihack.com;
    index       b;
    charset     utf-8;

    access_log  /var/log/nginx/b.danshihack.com.access.log  main;
    error_log   /var/log/nginx/b.danshihack.com.error.log;

}

/var/www/vhosts/b.danshihack.com/bに1x1透過Gifを置いて完成。画像はここからいただきました。

空白スペース用☆透過画像

例えば、こんな感じのimgタグを埋めればサーバーにログが残ります。

<img src="//b.danshihack.com/b?ad_type=123&ad_id=456">

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0