English 中文(简体)
主要域页和次域名的谷歌分析法是否相同?
原标题:Will Google Analytics code for main domain pages and sub-domain be same?

iii 我的守则是: 该法典将进入我网站的所有网页。 我知道,它应当进入我网站的次主题的所有网页。

<script type="text/javascript">

  var _gaq = _gaq || [];

  _gaq.push([ _setAccount ,  UA-******* ]);

  **_gaq.push([ _setDomainName ,  tuneupmedia.com ]);**

  _gaq.push([ _trackPageview ]);

  (function() {

    var ga = document.createElement( script ); ga.type =  text/javascript ; ga.async = 

true;

    ga.src = ( https:  == document.location.protocol ?  https://ssl  :  http://www ) + 

 .google-analytics.com/ga.js ;

    var s = document.getElementsByTagName( script )[0]; s.parentNode.insertBefore(ga, s);

  })();

</script>
最佳回答

是的。 该代码应放在所有网页上,其数值为_setDomainName

问题回答

暂无回答




相关问题
How to divide a search query into sub queries?

I am just wondering if there is an algorithm that can divide a user input query for a search engine into a set of sub queries. for example if the entered query is "plcae to stay and eat" the sub ...

Is there a lighter version of Google Analytics for Flash

40k of compiled code seems like a lot to me to be making some straightforward flash-javascript calls and makes GA unsuitable for banner ad work as well. Does anyone know if there is a lite version ...

PHP GET question - calling from a POST call

I have a quick question i hope you guys can answer, i ve got a search system that uses POST to do searches, now i want to track queries using Google Analytics but it requires using GET url parameters ...

Google Analytics to track FireFox extension use

I m developing a Firefox extension and would like to track its use with google analytics, but I can t get it working. I ve tried manually calling a function from ga.js, but that didn t work for some ...

Google Analytics _trackEvent troubles

I m having some noob troubles with Google Analytics and _trackEvent. Using it seems straight forward in the documentation, but I can t get this simple example to work. The call to _trackEvent fails ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

热门标签