问题描述
我有一个 google adwords 转换跟踪代码,我需要在 onclick 事件上实现它.我正在跟踪的表单使用 AJAX 提交信息,然后通过将表单的 div 替换为感谢 HTML ( $('div').html("thank you....., etc") 向页面呈现感谢消息);)
I have a google adwords conversion tracking code that I need to implement basically on an onclick event. The form I am tracking submits information using AJAX and then renders a Thank you message to the page by replacing the form's div with the thank you HTML ( $('div').html("thank you....., etc"); )
我想知道是否有办法 a) 在点击提交按钮时触发转换跟踪,或者 b) 如果我在 html() 函数中包含要发布到网站的谷歌脚本div,这会跟踪转换吗?或 c) 对此有何其他想法?
I'm wondering if there's a way to a) trigger a conversion track when the SUBMIT button is clicked, or b) if I include the google script to be posted to the site in the html() function that writes to a div, will that track the conversion? or c) Any other thoughts on doing this?
我对此进行了一些搜索,但运气不佳......谢谢!
I've searched a bit on this but haven't had much luck.... Thanks!
推荐答案
使用 IFRAME 调用带有转化跟踪代码的 HTML 文件.
Use an IFRAME to call an HTML file with the conversion tracking code on it.
http://www.benjaminkim.com/?p=24
这篇关于使用 AJAX 表单进行 Google AdWords 转化跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!