Developing a tracking pixel

后端 未结 5 1320
误落风尘
误落风尘 2020-11-28 01:09

I am trying to build a pixel that would track the current URL the user is on when they visit. I can use either JS (preferred) or a 1x1 image pixel. With JS I am assuming tha

5条回答
  •  北荒
    北荒 (楼主)
    2020-11-28 01:38

    Output 1px x 1px this way:

    header('Content-type: image/png');
    echo gzinflate(base64_decode('6wzwc+flkuJiYGDg9fRwCQLSjCDMwQQkJ5QH3wNSbCVBfsEMYJC3jH0ikOLxdHEMqZiTnJCQAOSxMDB+E7cIBcl7uvq5rHNKaAIA'));
    

提交回复
热议问题