简体   繁体   English

如何使用UTM标签在Google AdWords上跟踪关键字

[英]How to track Keywords on Google AdWords using UTM Tags

I am taking over a project from another developer that was not entirely finished and I am lost trying to figure out why the source and medium are being documented but not the keywords. 我正在接管另一个尚未完全完成的开发人员的项目,并且迷失了试图弄清楚为什么要记录源和媒介而不是文档的原因。 The medium and source are shown in the url and as hidden fields in a form, but the keywords are not. 介质和源在URL中显示为窗体中的隐藏字段,而关键字未显示。 This is the part of the code that I believe does what I intend to do. 这是代码的一部分,我相信它可以完成我打算做的事情。

//parse the cookies
var source = _uGC(z, 'utmcsr=', '|');
var medium = _uGC(z, 'utmcmd=', '|');
var term = _uGC(z, 'utmctr=', '|');

// Populate form fields
$( document ).ready(function() {
  $("#Field113").attr("value", source);
  $("#Field115").attr("value", medium);


  // If there's a "SearchKeyword" URL param, use it for the 'term'
  var SearchKeyword = (location.search.split('SearchKeyword=')[1]||'').split('&')[0];
  if ( (SearchKeyword && !term) || (SearchKeyword && term == "") ) {
    $("#Field126").attr("value", term);
  }
});

Maybe he cant get keywords? 也许他找不到关键字? You can take it from valuetrack 您可以从valuetrack中获取

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM