标签: tracking-pixel

确定javascript或跟踪像素的cookie的来源

我需要能够确定并识别cookie的来源.虽然许多cookie将在原始页面的HTTP响应中进入浏览器,但其他cookie将通过javascript或通过使用http加载到页面上的资产(例如跟踪像素或AJAX调用)添加到浏览器中.

确定/识别每个cookie的来源的好方法是什么?

javascript cookies http tracking-pixel

7
推荐指数
1
解决办法
1785
查看次数

跟踪像素是否需要具有可访问性的alt属性(WCAG 2.0)?

我们正在运行一个网站并拥有第三方跟踪像素,但我们在alt网站上进行webaim/WCAG 2.0扫描时会收到属性错误.

我不确定在这种情况下,跟踪像素实际上是否仍然需要一个空白alt属性,或者某些屏幕阅读器是否还会读取src

html accessibility alt wcag2.0 tracking-pixel

5
推荐指数
2
解决办法
2086
查看次数

为 Gmail 创建跟踪像素

我正在尝试创建一个跟踪像素来记录电子邮件在我的数据库中打开的时间。我通过在 URL 路径中调用一个 php 链接来做到这一点。

<img src="http://example.com/lp/index.php?p=tp&ord=xxxx" />
Run Code Online (Sandbox Code Playgroud)

然后在我的控制器中,我有记录时间的代码,然后是这段读取 1x1 图像并将其显示在屏幕上的代码。

$fileOut = 'inc/sections/common/tpixel.jpg';
header("Content-Type: image/jpg");
header('Content-Length: ' . filesize($fileOut));
readfile($fileOut);
Run Code Online (Sandbox Code Playgroud)

如果将 img 标签放置在网页的 HTML 中并且在浏览器中查看该网页,这将按预期工作。但是,当我将此图像标签放入电子邮件并使用 gmail 查看时,时间戳不会触发,图像也不会显示。它只返回 404 错误。

关于为什么在 gmail 中查看图像会返回找不到的任何想法?这不是最好的方法吗?这是我第一次尝试跟踪像素。

另请注意,我确实单击了电子邮件中的显示图像以将其激活。

php email gmail tracking tracking-pixel

5
推荐指数
1
解决办法
4525
查看次数

用主体将Nginx上的请求从GET重写为POST(用于跟踪像素)

我试图弄清楚是否有一种简单的方法可以将到达Nginx的跟踪像素请求转换为POST,该POST请求将向上游添加一些主体。

例如,如果我收到的GET请求http://domain.com/track/mail-id.gif,我想配置Nginx将其转换为http://upstream/mail-id带有某个正文的POST (比如说status:opened)。

怎么做到呢?

webserver redirect web-services nginx tracking-pixel

2
推荐指数
2
解决办法
3915
查看次数

参考错误:未定义 UET

I'm struggling to understand why this javascript error keeps popping up on my website and I can't reproduce it. I've followed the bing documentation to install their tracking pixel so I have this in my header :

  <script>
    (function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[],f=function(){
      var o={ti:"xxxxxxxx"};o.q=w[u],w[u]=new UET(o),
              w[u].push("pageLoad")},n=d.createElement(t),n.src=r, n.async=1,
            n.onload=n.onreadystatechange=function(){var s=this.readyState;
              s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)},
            i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)})
    (window,document,"script","//bat.bing.com/bat.js","uetq");
  </script>
Run Code Online (Sandbox Code Playgroud)

However in some browsers, the UET variable in this code, which is loaded by the url given as the r variable, seems to not be defined while it's only …

javascript bing tracking-pixel

2
推荐指数
2
解决办法
1212
查看次数