Nzacha Subdomains na Google Analytics

ga

Na ngwanrọ dị ka ndị na-ere ahịa (SaaS) dị ka Ngwakọta, ị na-ekenye subdomain ma nọrọ na blọọgụ gị na subdomain dị iche karịa ebe nrụọrụ weebụ gị. A na - ejikarị blog.domain.com na www.domain.com rụzuo nke a. Companieslọ ọrụ dị iche iche na-etinye akaụntụ dị iche iche na Google Analytics iji nyochaa subdomain blog. N'ezie ọ dịghị mkpa.

Nchịkọta Google ga-enye gị ohere nyochaa ọtụtụ subdomains n'ime otu profaịlụ. Iji mee nke a, ị gbakwunye koodu nke koodu Google Analytics gị ugbu a:

Akwụkwọ edemede Google Analytics ọhụrụ

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

Ederede Google Analytics

 try {
var pageTracker = _gat._getTracker("UA-XXXXXX-XX");
peeji nkeTracker._setDomainName (". example.com");
peeji nke Tracker._trackPageview (); } nwude (err) {}

Not rụchabeghị! Ọ bụrụ na ị mee nke ahụ, ị ​​na-agba ọsọ n'okwu nke ụzọ ndị a tụrụ atụ n'okpuru otu URL na Google. Ya mere - ọ bụrụ na ị nwere index.php na blọọgụ gị na www subdomains, a ga-atụle ha abụọ dịka index.php. Nke ahụ adịghị mma. N'ihi ya, ị ga-eme ụfọdụ nzacha dị elu na akaụntụ ahụ!

Banye na nchịkọta Google ma pịa Dezie na profaịlụ Google gị. Pịgharịa gaa na ibe ebe ịnwere ike ịgbakwunye nzacha ma gbakwunye nzacha dị elu na ntọala ndị a:
Advanced Myọcha maka Subdomains na Google Analytics

Ugbu a profaịlụ gị kwesịrị ịmata ọdịiche dị na subdomain niile na Akaụntụ Analytics.

13 Comments

  1. 1
  2. 2
  3. 3

    Ngalaba "mado koodu" na Google Analytics ugbu a nwere uzo abuo:

    1. Kedu ihe ị na-esochi?
    Otu ngalaba (ndabere)
    Aha njirimara: marketingtechblog.com

    Otu ngalaba nwere otutu subdomains
    Ihe atụ:
    http://www.marketingtechblog.com
    apps.marketingtechblog.com
    ụlọ ahịa.marketingtechblog.com

    Otutu ngalaba di elu

    mgbe ahụ igbe nlele maka Adwords Tracking

    Nke a bụ otu maka gị: gịnị kpatara nchọgharị safari m maka PC na-egosi enweghị atụmatụ google mana ọ naghị enye m nhọrọ iji lelee mmelite (mmelite saịtị mmekọrịta) na ihe ndị yiri ya?

  4. 4
  5. 5
  6. 7
  7. 8

    Ndewo Doug,

    Etinyego m edemede a dị n'elu mana ọ dị ka ọ naghị arụ ọrụ. Ihe obula m ghafere nke unu maara? 

    Ga-enye aka ma ọ bụrụ na ị nwere ike iburu m ụzọ na nke a. 

    Ekele na ekele,
    Nishanth T

    • 9

      Di na nwunye ihe, @ google-1f23c56cd05959c64c268d8e9c84162e: disqus. Nke mbụ (ma pụta ìhè) bụ iji hụ na edoziri koodu UA gị nke ọma. Achọghị m ide ihe ahụ, mana oge ụfọdụ anyị na-edetuo na mado ma chefuo. Nke abụọ… ọ ga-ewe ọtụtụ awa n'ezie ịchụkwudo. Nye ya otu ụbọchị wee lee!

      • 10

        Hey @douglaskarr: disqus - Daalụ nke ukwuu maka azịza ya. Enwere ezigbo ekele - edobere koodu UA n'ụzọ zuru oke. Enyocha ya ọzọ. Anọ m na-esochi ya na koodu a kemgbe ihe karịrị otu ọnwa ugbu a. Microsites / sub-domains adịghị egosi na GA. 

        Cheer…

  8. 11

    Daalụ! Nnọọ aka. Enwere m otu koodu ahụ na-arụ na ngalaba dị iche iche, dabere na ejiri http ma ọ bụ https (ọkachasị iji kewaa kuki, n'ihi na enwekwara m ngwugwu ngwungwu dị iche iche & Achọrọ m izere ịkọ akụkọ ụdị), mana javascript mgbanwe ndị mara ezigbo mma.

  9. 12

    Hey e ekele maka nkuzi a ọ bara ezigbo uru! Yabụ ozugbo m tinye koodu na ngalaba ngalaba m niile bụ stats na nchịkọta na-egosi na ọ ga-etinye okporo ụzọ site na ngalaba m?

  10. 13

Kedu ihe ị chere?

Ebe a na-eji Akismet iji belata spam. Mụta otu esi etinye usoro data gị.