<div class="codetitle"> <span><a style="CURSOR: pointer" data="30106" class="copybut" id="copybut30106" onclick="doCopy('code30106')"><u>Copy code</u></a></span> The code is as follows:</div> <div class="codebody" id="code30106"> <br><script type="text/javascript"> <br> var _gaq = _gaq || []; //If the variable _gaq exists, it is equal to itself, otherwise it is an empty array <br>_gaq.push(['_setAccount', 'UA-24479793-2']); / / is a 2-dimensional array_gaq[0] = array(0=>'_setAccount', 1=>'UA-24479793-2'); (Set the Google account corresponding to this tracking code) _gaq.push([ '_trackPageview']); //It is a 2-dimensional array _gaq[1] = array(0=>'_trackPageview'); (define tracking by page) (function () { <br>var ga = document.createElement( 'script'); //Create a <script> tag <br>ga.type = 'text/javascript'; //<script type="text/javascript""> <br>ga.async = true ; //async asynchronous script seems not to have this attribute <br>ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') '.google -analytics.com/ga.js'; // If it is https: assign src to https://ssl.google-analytics.com/ga.js otherwise http://www.google-analytics.com/ga .js var s = document.getElementsByTagName('script')[0]; //Then find the first <script> tag of the current page<br>s.parentNode.insertBefore(ga, s); //Add the dom The created <script> is added after the first <script> tag on the page <br>})(); <br>/**<br>Dynamic loading of js code. This is done to download js code asynchronously. Reduce blocking in the process of downloading js files. Google’s tracking code**/ </script> <br> </div>.