Lim Subdomains hauv Google Analytics

ga

Nrog software ua ib pabcuam (SaaS) cov chaw muag khoom nyiam Ntaus txuas ntxiv, koj delegate ib subdomain thiab host koj blog rau ntawm subdomain sib txawv dua li koj lub vev xaib. Feem ntau, qhov no tau ua tiav nrog blog.domain.com thiab www.domain.com. Feem ntau cov tuam txhab siv cov kev cais tawm tag nrho hauv Google Analytics los soj ntsuam cov blog subdomain. Nws yeej tsis tsim nyog.

Google Analytics yuav tso cai koj los saib xyuas ntau lub subdomains nyob rau hauv tib profile. Ua li no, koj tsuas ntxiv ib txoj kab ntawm kab ntawv rau koj kev sau ntawv Google Analytics tam sim no:

Google Analytics Tsab Ntawv Tshiab

	var _gaq = _gaq || [];
	_gaq.push(['_setAccount', 'UA-XXXXXX-XX']);
    _gaq.push (['_ setDomainName', 'example.com']);
	_gaq.push (['_ trackPageview']); _gaq.push (['_ trackPageLoadTime']); (function () {var ga = document.createElement ('tsab ntawv'); ga.type = 'ntawv nyeem / javascript'; ga.async = tseeb; ga.src = ('https:' == document.location.protocol? 'https: // ssl': 'http: // www') + '.google-analytics.com / ga.js'; var s = document.getElementsByTagName ('tsab ntawv') [0]; s.parentNode.insertBefore (ga, s);}) ();

Ntawv Google Analytics Qub

 try {
var pageTracker = _gat._getTracker("UA-XXXXXX-XX");
pageTracker._setDomainName (". example.com");
pageTracker._trackPageview (); } ntes (yuam kev) {}

Koj tsis tau ua tiav! Yog tias koj tsuas yog ua li ntawd, koj khiav qhov teeb meem ntawm txoj kev zoo ib yam raug ntsuas hauv ib qho URl hauv Google. Yog li - yog tias koj muaj index.php rau koj cov blog thiab www subdomains, lawv yuav ob leeg raug ntsuas raws li index.php. Yog tsis zoo. Raws li qhov tshwm sim, koj yuav tsum tau ua qee qhov kev xav zoo nkauj siab lim hauv tus as khauj!

Nkag mus rau Google Analytics thiab nyem Kho kom raug koj li Google profile. Txav nqes hauv nplooj ntawv uas koj tuaj yeem ntxiv lim thiab ntxiv lim lim siab nrog cov chaw hauv qab no:
Ua ntej tshaj Lim rau Cov Nqis hauv Google Analytics

Tam sim no koj qhov profile yuav tsum paub qhov txawv subdomain thoob plaws hauv tag nrho cov Analytics Account.