如何跟踪Google Adwords转换? [英] How to track a Google Adwords conversion onclick?

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

问题描述

如果有人点击某个链接,Google Adwords不会为您的网页添加代码来计算转化次数。但是因为它是Javascript,我相信有一种方法可以做到这一点。

Google Adwords offers no code to add to your page to count a conversion if somebody clicks on a link. But as it's Javascript, I am sure there is a way to do this.

以下是Google允许您在页面中包含的代码(未经更改),应该算作转换(大部分时间是感谢页面):

Here's the code (unaltered) Google gives you to include in the page, that should count as a conversion (most of the time a thank you page):

<!-- Google Code for Klick Conversion Page -->
<script type="text/javascript">
<!--
var google_conversion_id = 1062751462;
var google_conversion_language = "de";
var google_conversion_format = "1";
var google_conversion_color = "ffffff";
var google_conversion_label = "dKXuCODvugEQ5pnh-gM";
var google_conversion_value = 0;
//-->
</script>
<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/1062751462/?label=dKXuCODvugEQ5pnh-gM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>

使用其他转换跟踪脚本时,必须执行一些函数来计算转换次数。在这里,只需将JS-File添加到您的页面就足以触发转换跟踪,因为conversion.js会在加载时调用一个函数(下载它并在通过代码测试器运行它之后查看它,这真是相当不错的工作!)。

With other conversion tracking scripts some function has to be executed to count the conversion. Here, just adding the JS-File to your page can be enough to trigger the conversion-tracking, as conversion.js calls a function on load (download it and look at it after running it through a code beatuifier, it's really quite nice work!).

任何想法如何解决这个问题?

Any idea how to tackle this?

推荐答案

不知道你是否已经找到它......无论如何我还是为未来的冲浪者提起它...

Don't know if you've already found it... I mention it anyway for future surfers...

我一直在找同样的,发现这件作品代码:

I was looking for the same, and found this piece of code :

<script type="text/javascript"> 
    function trackConv(google_conversion_id, google_conversion_label) {
        var image = new Image(1, 1); 
        image.src = "//www.googleadservices.com/pagead/conversion/" + google_conversion_id + "/?label=" + google_conversion_label + "&script=0";  
    }
 </script>

然后,对于您想要跟踪的链接,请执行以下操作:

Then for links which you want to track just do this :

<a onclick="trackConv(1234567890, 'LQV8CNq6RxCKlPbvAw');" href="http://www.example.com">Link</a> 

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

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