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 na ebe nrụọrụ weebụ gị. A na - ejikarị blog.domain.com na www.domain.com rụzuo nke a. Ndị otu ụlọ ọrụ na-emejuputa akaụntụ dị 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) {}

Imechabeghị! Ọ 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, i nwere ime ụfọdụ fancy elu nzacha na akaụntụ!

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 nzọụkwụ abụọ:

    1. Kedu ihe ị na-enyocha?
    Otu ngalaba (nke ndabara)
    ngalaba: marketingtechblog.com

    Otu ngalaba nwere ọtụtụ subdomains
    Ihe atụ:
    http://www.marketingtechblog.com
    apps.marketingtechblog.com
    store.marketingtechblog.com

    Otutu ngalaba ọkwa dị elu

    wee tinye igbe nlele maka Ndepụta Adwords

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

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

    Hi Doug,

    Agbakwunyere m edemede a dị n'elu mana ọ dị ka ọ naghị arụ ọrụ. Onwere ihe m tufuru nke unu mara? 

    Ọ ga-enyere gị aka ma ọ bụrụ na ị nwere ike iburu m n'ihu na nke a. 

    Ekele na ekele,
    Nishanth T

    • 9

      Ihe ole na ole, @google-1f23c56cd05959c64c268d8e9c84162e:disqus . Nke mbụ (na nke doro anya) bụ ịhụ na edobere koodu UA gị nke ọma. Akpọrọ m asị ide nke ahụ, mana mgbe ụfọdụ anyị na-e copyomi na mado wee chefuo. Nke abụọ… ọ ga-ewe ọtụtụ awa iji nweta n'ezie. Nye ya otu ụbọchị wee hụ!

      • 10

        Hey @douglaskarr:disqus - Daalụ nke ukwuu maka azịza ya. Enwere ekele nke ukwuu- koodu UA edobere nke ọma. Lelee ya ọzọ. Eji koodu a na-esochi ya ihe karịrị otu ọnwa ugbu a. Ndị microsites/okpuru ngalaba anaghị egosi na GA. 

        Cheer…

  8. 11

    Daalụ! Enyemaka dị ukwuu. Enwere m otu koodu ahụ na-emezu na ngalaba dị iche iche, dabere ma a na-eji http ma ọ bụ https (karịsịa iji kewaa kuki, n'ihi na enwekwara m ụdị ngwugwu azụ azụ dị iche iche & Achọrọ m izere akaụntụ ụdị replay), mana javascript. mgbanwe ndị mara mma obere.

  9. 12

    Hey ebe ahụ daalụ maka nkuzi a ọ bara ezigbo uru! Ya mere, ozugbo m gbakwunyere koodu ahụ na ngalaba ngalaba m niile bụ stats nke nyocha na-egosi na ọ ga-agụnye okporo ụzọ si na subdimains m?

  10. 13

Kedu ihe ị chere?

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