1

Can you tell me how to increase the expiry time of the Google Analytics. All the page speed tests are telling me to increase it beyond 12 hours.

So far I have tried setting the expiry in the .htaccess file for all *.js files but it doesn't have any effect. I have also searched on the Analytics help pages and forum, without success.

4

1 回答 1

1

You can download/host it yourself -- just make sure you follow the Google Analytics ga.js Changelog and update it when applicable.

Note: PageSpeed is a recommendation, not a 100% steadfast rule. I'd be willing to bet you're over-optimizing something seemingly easy and could focus on other internal efforts for better performance gains. Give Yotta a shot and see what they say/think.

于 2013-03-30T12:09:03.290 回答