Google AdWords 服务器端转化跟踪

发布于 2024-11-08 07:24:01 字数 520 浏览 1 评论 0原文

我一直在尝试将 Google AdWords 转化跟踪添加到我一直在开发的单页应用程序中,并且我有一个有趣的用例,但我似乎不知道如何使用:

  1. 用户触发一个事件我想用作转换。
  2. 我收集有关事件的数据,并将其发送到异步服务。
  3. 该服务将该事件映射到转换标签,并执行其他数据转换。
  4. 转换后的 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:

  1. A user fires an event that I want to use as a conversion.
  2. I collect data about the event, and send it to an asynchronous service
  3. The service maps that event to a conversion label, and does other data transformation.
  4. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

夜访吸血鬼 2024-11-15 07:24:01

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...

ι不睡觉的鱼゛ 2024-11-15 07:24:01

这是可能的 - 请参阅此版本的 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

成熟的代价 2024-11-15 07:24:01

因此,事实证明,您可以使用“离线转化跟踪”来摆脱困境。

基本上,您可以从系统导出 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文