如何创建一个目标,该目标将跟踪定义的页面和带有特定标签的所有帖子(wordpress)?例如,...我想跟踪页面livepot.pl/gw2/以及所有带有“ gw2”标签的帖子。我知道如何在php中执行此操作,该操作将检查是否带有该标签的帖子...但是我需要Google Analytics(分析)部分的帮助。
最佳答案
像这样使用均匀跟踪。
_gaq.push(['_trackEvent', 'Visit', 'gw2']);
有关更多示例,请参见The Event Tracker Guide。这是用javascript完成的。
您还可以使用自定义变量,如此处Custom Variables所示。
_gaq.push(['_setCustomVar',
1, // This custom var is set to slot #1. Required parameter.
'Tag', // The top-level name for your online content categories. Required parameter.
'gw2', // Sets the value of "Section" to "Life & Style" for this particular aricle. Required parameter.
3 // Sets the scope to page-level. Optional parameter.
]);
关于google-analytics - 如何跟踪页面和所有带有特定标签的帖子?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22135057/