不可见像素转换跟踪如何工作? [英] How does invisible pixel conversion tracking work?

查看:106
本文介绍了不可见像素转换跟踪如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试跟踪从我们网站到外部网站的点击.在外部网站上,我想在他们的结帐感谢页面上放置一些代码,以告知我们的服务器特定的点击促成了销售.

I'm trying to track clicks from our site to an external website. On the external website, I'd like to place some code on their checkout thank-you page, that tells our server that a particular click has resulted in a sale.

此跟踪代码如何工作?需要像素吗?在将用户发送到外部网站之前,是否需要删除cookie?

How does this tracking code work? Does it need to be a pixel? Do we need to drop a cookie before we send the user to the external website?

谢谢.

推荐答案

基于像素的转化跟踪非常简单.您设置了一个基本的Web服务器来接受HTTP GET请求并为这些请求编写日志.在商家的确认页面上,在跟踪服务器上放置一个图像,其中src属性是URL.该URL包含您需要收集的用于销售的任何数据,这些数据将显示在服务器日志中.

Pixel-based conversion tracking is pretty straightforward. You set up a basic web server to accept HTTP GET requests and write logs for those requests. On the merchant's confirmation page you put an image where the src attribute is a URL on your tracking server. That URL contains any data you need to collect for the sale, which will show up in your server logs.

(不,这不必是像素.可以使客户从您的服务器请求某些内容的任何借口.XHR请求,脚本标签等都可以正常工作.)

示例:如果您需要知道订单ID号和销售价格,则可以让商家嵌入一个像这样的像素:<img src="http://tracker.example.com/i.gif?orderID=12345&orderVal=99.95">. 现在,您的服务器日志中将记录产生的销售记录 该网站.

Example: if you need to know the Order ID number and value of a sale, you could have the merchant embed a pixel that looks like this: <img src="http://tracker.example.com/i.gif?orderID=12345&orderVal=99.95">. Your server logs will now have a record of sales generated on that site.

现在,您需要某种方法来将产生的销售 与其他销售收入区分开.有三种方法可以解决此问题:

Now you need some way to separate sales you generated from the rest of them. There are three ways to go about this:

  • 您进行跟踪,
  • 商人进行跟踪
  • 您与第三方合作.

会员网络可以是第三方,商家可以跟踪流量来源并使用该数据来决定何时显示跟踪像素,或者您可以自己进行跟踪.选择哪种方式取决于合作伙伴的条款.

An affiliate network can be that third party, the merchant can track traffic sources and use that data to decide when to display your tracking pixel, or you can track it yourself. Which way you go depends on the terms of your partnership.

一种流行且简单的跟踪您的销售额的方法是在与跟踪器相同的域上设置cookie.由于许多客户端会阻止第三方Cookie,因此,如果您的跟踪服务器也是重定向服务器,则您将获得最佳跟踪.

One popular and easy way to track which sales are yours is to set a cookie on the same domain as the tracker. Since many clients will block 3rd-party cookies, you will track best if your tracking server is also a redirection server.

示例:在您的网站上,您的出站点击经历了您的 跟踪服务器.而您曾经有一个<a>标记指向 http://destination-site.com/landing-page.html您现在发送流量 到:http://tracker.example.com/redirect.php?url=http%3A%2F%2Fdestination-site.com%2Flanding-page.html.在此示例中,redirect.php 应该设置一个cookie并重定向到 目标网站.

Example: on your site you make outbound clicks go through your tracking server. Whereas you used to have an <a> tag that pointed to http://destination-site.com/landing-page.html you now send traffic to: http://tracker.example.com/redirect.php?url=http%3A%2F%2Fdestination-site.com%2Flanding-page.html. In this example, redirect.php should set a cookie and a redirect to the destination site.

您的服务器日志现在将在来自以下位置的图像请求中具有该cookie值 商家的确认页面,以及您传递的任何其他数据 在Cookie中(或与您的后端相关联).现在,当您查看跟踪时 服务器日志中,您知道带有cookie的图像请求是您的请求,而其他则不是.

Your server logs will now have that cookie value on image requests from the merchant's confirmation page, along with any other data you passed in the cookie (or associated with it on your back end). Now, when you look at your tracking server logs you know the image requests with cookies are yours and the others are not.

当涉及的各方更多,更深入的报告需求,要遵守的会计和PII政策,对欺诈的担忧等时,事情就变得复杂了,但这就是要点.

Things start getting complicated when there are more parties involved, deeper reporting needs, accounting and PII policies to comply with, concerns over fraud, etc but that's the gist of it.

这篇关于不可见像素转换跟踪如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆