douwei2713 2015-07-10 10:59
浏览 12

在客户端拥有自己的跟踪代码

I would appreciate bit help with some tracking issues. We have a site which sells a product and on a specific page there is a list of all sellers. When somebody goes to our page by clicking on link there with GET argument (http://example.com?url=example.com) the site is saved into our cookies named sellers and only those sellers which are in the cookie are listed instead of listing all of them.

My quest is if there is any way how to create a tracking code (or something which will better do the job) which we can give to the sellers to put it into their website (as Google Analytics or FB tracking code) to create and store a cookie with this kind of information? This will be used if the client after visiting their store go to our website (not directly, in last 30 days) and only visited stores will be listed?

I would be even happy for some links, I've googled a bit, but probably bad way without result. Thanks a lot in advance

  • 写回答

1条回答 默认 最新

  • dongwuchu0314 2015-07-10 11:50
    关注

    You can achieve this by telling him to just add one transparent blank image tag and give the php file as the src attritube of that image and put sellere tracking code in that file. like:

     <img src="trackSeller.php" />
    

    code in trackSeller.php :

    //Code for fetching seller id and track 
    //Trackong code
    $img_data = file_get_contents($imgPath);
    header("Content-type: image/png");
    echo $img_data;
    
    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大