美好的一天, 我正在嘗試爲我的網站配置AdWords轉換代碼,但在Google文檔中找不到我要查找的任何信息。最後,我想跟蹤表單提交輸入中的onClick事件。表單上的Google AdWords轉換跟蹤發送
我想知道我應該在我的onClick事件中包含什麼,因爲發送按鈕不會導致另一個頁面,但有一個AJAX加載?
我的AdWords跟蹤代碼爲:
<script type="text/javascript">
/* <![CDATA[ */
\t goog_snippet_vars = function() {
\t var w = window;
\t w.google_conversion_id = 12345678;
\t w.google_conversion_label = "abcDeFGHIJklmN0PQ";
\t w.google_remarketing_only = false;
\t }
\t // DO NOT CHANGE THE CODE BELOW.
\t goog_report_conversion = function(url) {
\t goog_snippet_vars();
\t window.google_conversion_format = "3";
\t window.google_is_call = true;
\t var opt = new Object();
\t opt.onload_callback = function() {
\t if (typeof(url) != 'undefined') {
\t window.location = url;
\t }
\t }
\t var conv_handler = window['google_trackConversion'];
\t if (typeof(conv_handler) == 'function') {
\t conv_handler(opt);
\t }
\t }
/* ]]> */
</script>
<script type="text/javascript"
src="//www.googleadservices.com/pagead/conversion_async.js">
</script>