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:
我一直在尝试将Google AdWords转换跟踪添加到我正在处理的单个页面应用程序中,我有一个有趣的用例,我似乎无法弄清楚如何使用:
- 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.
用户触发我想用作转换的事件。
我收集有关该事件的数据,并将其发送到异步服务
该服务将该事件映射到转换标签,并进行其他数据转换。
已转换的,现在与AdWords兼容的对象会发送给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.
我遇到的问题是谷歌提供的代码片段使用了一些全局变量,然后包含一个脚本(googleadservices.com/pagead/conversion.js),并显示一个跟踪像素。
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.
如果我只是请求该像素,我的转换会被解雇吗? (这将在服务器端完成,因此我无法包含conversion.js文件)。
除了iFraming代码段之外,是否有任何记录或已知的方法来触发转换事件?我真的不想在客户端上进行任何数据转换,但即使我这样做,这似乎是实现转换跟踪的一种丑陋方式。
Thanks!
3 个解决方案
#1
5
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.
AdWords转换像素是基于Cookie的,因此像素请求必须来自客户端。遗憾的是,据我所知,Google还不支持服务器到服务器的跟踪,因此您无法进行客户端跟踪。
As ugly as it is, it's the most popular method...
虽然很丑,但这是最受欢迎的方法......
#2
2
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
这是可能的 - 请参阅此版本的谷歌分析http://code.google.com/p/php-ga/ - 但似乎没有人为adwords做过但不幸的是
#3
1
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
基本上,您可以从系统中导出CSV并导入到Google Adwords中:https://support.google.com/adwords/answer/2998031?hl = zh-CN
#1
5
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.
AdWords转换像素是基于Cookie的,因此像素请求必须来自客户端。遗憾的是,据我所知,Google还不支持服务器到服务器的跟踪,因此您无法进行客户端跟踪。
As ugly as it is, it's the most popular method...
虽然很丑,但这是最受欢迎的方法......
#2
2
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
这是可能的 - 请参阅此版本的谷歌分析http://code.google.com/p/php-ga/ - 但似乎没有人为adwords做过但不幸的是
#3
1
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
基本上,您可以从系统中导出CSV并导入到Google Adwords中:https://support.google.com/adwords/answer/2998031?hl = zh-CN