Google AdWords 服务器端转化跟踪
我一直在尝试将 Google AdWords 转化跟踪添加到我一直在开发的单页应用程序中,并且我有一个有趣的用例,但我似乎不知道如何使用:
- 用户触发一个事件我想用作转换。
- 我收集有关事件的数据,并将其发送到异步服务。
- 该服务将该事件映射到转换标签,并执行其他数据转换。
- 转换后的 AdWords 兼容对象将发送到 AdWords。
我遇到的问题是谷歌提供的代码片段使用一些全局变量,然后包含一个脚本(googleadservices.com/pagead/conversion.js),并显示一个跟踪像素。
我的问题如下:
- 如果我只请求该像素,我的转换会触发吗? (这将在服务器端完成,因此我无法包含 conversion.js 文件)。
- 除了 iFraming 代码片段之外,是否有任何已记录或已知的触发转换事件的方法?我真的不想在客户端上进行任何数据转换,但即使我这样做,这似乎也是一种实现转化跟踪的丑陋方法。
谢谢!
I've been trying to add Google AdWords conversion tracking to a single page Application I've been working on, and I have an interesting use case that I can't seem to figure out how to work with:
- A user fires an event that I want to use as a conversion.
- I collect data about the event, and send it to an asynchronous service
- The service maps that event to a conversion label, and does other data transformation.
- The transformed, now AdWords compatible object is sent to AdWords.
The problem I'm having is that the snippet provided by google uses some global variables and then includes a script (googleadservices.com/pagead/conversion.js), and displays a tracking pixel.
My questions are as follows:
- If I were to just make a request for that pixel, will my conversion fire? (This would be done on the server side, so I wouldn't be able to include the conversion.js file).
- Are there any documented or known ways of firing conversion events other than iFraming the snippet? I really don't want to have to do any data transformation on the client, but even if I did, this seems like an ugly way to achieve the conversion tracking.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
AdWords 转换像素基于 Cookie,因此像素请求必须由客户端发出。不幸的是,据我所知,谷歌尚不支持服务器到服务器的跟踪,因此您只能使用客户端跟踪。
尽管它很丑陋,但这是最流行的方法......
AdWords conversion pixels are cookie based, so the pixel request must be made from the client. Google unfortunately doesn't support server-to-server tracking yet, as far as I know, so you're stuck with client-side tracking.
As ugly as it is, it's the most popular method...
这是可能的 - 请参阅此版本的 Google Analytics http://code.google.com/p/php -ga/ - 但不幸的是,似乎还没有人为 AdWords 做到这一点
It's possible - see this version for google analytics http://code.google.com/p/php-ga/ - but no one seems to have done it for adwords yet unfortunately
因此,事实证明,您可以使用“离线转化跟踪”来摆脱困境。
基本上,您可以从系统导出 CSV 并导入 Google Adwords:https:// /support.google.com/adwords/answer/2998031?hl=zh-CN
So, it turns out you can get away using "offline conversion tracking".
Basically you can export a CSV from your system and import into Google Adwords: https://support.google.com/adwords/answer/2998031?hl=en