PageSpeed Insights 99/100 because of Google Analytics - How can I cache GA?

前端 未结 20 1715
無奈伤痛
無奈伤痛 2020-11-29 15:10

I\'m on a quest to reach 100/100 on PageSpeed and i\'m almost there. I\'m trying to find a good solution to cache Google Analytics.

Here is the message I get:

20条回答
  •  借酒劲吻你
    2020-11-29 15:30

    I wouldn't worry about it. Don't put it on your own server, it sounds like this is an issue with Google, but as good as it gets. Putting the file on your own server will create many new problems.

    They probably need the file to get called every time rather than getting it from the client's cache, since that way you wouldn't count the visits.

    If you have a problem to feel fine with that, run the Google insights URL on Google insights itself, have a laugh, relax and get on with your work.

提交回复
热议问题