How do I setup IIS with a cookieless domain to improve performance?

前端 未结 5 2022
有刺的猬
有刺的猬 2021-01-07 19:48

I was reading in google\'s documentation their new pagespeed plugin, that they recommend using cookieless domains to improve performance:

Static conte

5条回答
  •  时光取名叫无心
    2021-01-07 20:24

    Here's an example using the Google Analytics asynchronous tracking code, of how to set the domain for tracking: _gaq.push(['_setAccount', 'UA-XXXXXXX-x'],['_setDomainName', 'www.example.com'],['_trackPageview']);

    Here's an example using the previous version of tracking code:

    var pageTracker = _gat._getTracker("UA-XXXXXXX-x");
    pageTracker._setDomainName("www.example.com");
    pageTracker._trackPageview();
    

    and here's what Google has to say about this: Google Analytics & Cookies

提交回复
热议问题