Through the local file to improve the performance of Anlytics noble baby

The localization of

2. Our network environment is not ideal, although the possibility of noble baby server is very high, but for Chinese users, connecting success rate has obvious effect. I have access to relevant information, the availability of Chinese users to open the WWW. noble baby贵族宝贝 is about 92%, the noble www. baby -analytics>

noble baby Anlytics analysis code is asynchronous loading, generally will not affect the performance of a web page, but the page performance report of the technical department always mentioned ga.js state Aborted. There request Aborted state means that the request was terminated, the reason is very simple, because we are in a particular area of the network environment (you know). How to solve the non GA code request ga.js loading speed? The Internet to find the scheme of not more than three, but basically is to modify the tracking code, such as the deletion of http: and https: judgment, ignore cookie incomplete inspection. But I think the way: to improve the availability of ga.js is completely local managed ga.js, ga.js will be transplanted to the local server". This paper through the field, share with friends / webmaster Shanghai Longfeng implementation process.

noble baby Anlytics analysis code is asynchronous loading, generally will not affect the performance of a web page, but the page performance report of the technical department always mentioned state of ga.js Aborted, indicating that GA is asynchronous track, but in some cases of "performance and loading time does influence. The noble baby analysis code in the end will not affect the performance of a web page? Local hosting ga.js is feasible? This paper provides the basic ideas and implementation methods of the local server hosting ga.js.

ga.js: the local ga.js file hosting, web performance / loading time, what are the clouds

? asynchronous track as no danger of anything going wrong!

with some webmaster, or exchange website data analysts found that most people’s view is that "because the GA tracking is asynchronous tracking mode, so it will not affect the performance of the page". At this point, Xiangzi is Shanghai dragon of his reservations: Yes, at the end of 2009, the noble baby analytics launched GA asynchronous tracking code, synchronous tracking code compared to the previous performance to improve by leaps and bounds in "performance. However, according to Xiangzi for many years as a station and Shanghai Longfeng experience, GA is not a

1. First of all, we should be based on a premise, GA is using asynchronous statistics model, greatly improve the performance of web pages. But we can not ignore the client browser still to download about 35.9KB ga.js file, and the file is downloaded from the aristocracy in the American state of California baby on the server.

noble baby analysis code in the end will not affect the performance of "

Leave a Reply

Your email address will not be published. Required fields are marked *