Google Analytics:阻止发送网页标题

par*_*rsa 3 javascript google-analytics

如何阻止GA跟踪页面标题?设置_setDetectTitlefalse仍将请求中的页面标题发送到GA服务器(utmdt).由于隐私问题,我不希望页面标题离开浏览器.有任何想法吗?

Yah*_*hel 7

_setDetectTitle对我来说工作得很好.您只需在通话前_trackPageview拨打电话:

    var _gaq=_gaq||[];
    _gaq.push(['_setAccount','UA-XXXXXX-1']);
    _gaq.push(['_setDetectTitle', false]);    
    _gaq.push(['_trackPageview'])
Run Code Online (Sandbox Code Playgroud)

您可以将_setDetectTitle 设置为false版本中发送的__utm.gif匹配标准版本中发送的命中对比.

在前者中,utmdt没有设定,在后者中,它是.

屏幕截图:左侧的那个发送页面标题; 右边的那个没有.

发送页面标题 不发送页面标题