出于测试目的,我错误地创建了不需要的自定义变量。现在我要删除那些变量。
有什么办法可以删除那些变量?
我使用以下脚本创建了这些变量
<script type="text/javascript">
pageTracker._setCustomVar(1,"Author","Xyz abc",3);
pageTracker._setCustomVar(1,"author","Nimbus",3);
</script>
我想删除两个变量。
提前致谢。
最佳答案
试试这个
_gaq.push(['_deleteCustomVar', 1]);
https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiBasicConfiguration#_gat.GA_Tracker_._deleteCustomVar
关于php - 如何删除谷歌分析的自定义变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20605541/