Chotsani Ma Subdomains mu Google Analytics

ga

Ndi mapulogalamu monga service (SaaS) ogulitsa ngati Kuphatikiza, mumapereka subdomain ndikusunga blog yanu pamtundu wina kuposa tsamba lanu. Nthawi zambiri, izi zimachitika ndi blog.domain.com ndi www.domain.com. Nthawi zambiri makampani amagwiritsa ntchito akaunti yosiyana mu Google Analytics kuti ayang'anire subdomain. Sizofunikira kwenikweni.

Google Analytics ikuthandizani kuti muwunikire ma subdomain angapo mkati mwa mbiri imodzi. Kuti muchite izi, ingowonjezerani mzere wa nambala patsamba lanu la Google Analytics:

Zolemba Zatsopano za Google Analytics

	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 ('script'); ga.type = 'text / javascript'; ga.async = zowona; 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);}) ();

Zolemba Zakale za Google Analytics

 try {
var pageTracker = _gat._getTracker("UA-XXXXXX-XX");
tsambaTracker._setDomainName (". example.com");
tsambaTracker._trackPageview (); } kugwira (err) {}

Simunamalize! Mukangochita izi, ndiye kuti mukuyendetsa njira zofananira zomwe zimayesedwa pansi pa URl imodzi mu Google. Chifukwa chake - ngati muli ndi index.php pa blog yanu ndi www subdomains, onsewo adzayezedwa ngati index.php. Sizabwino. Zotsatira zake, muyenera kuchita zosefera zapamwamba mu akauntiyi!

Lowani ku Google Analytics ndikudina Sinthani mbiri yanu ya Google. Pezani pansi patsamba lomwe mungawonjezere fyuluta ndikuwonjezera fyuluta yayikulu ndi makondawa:
Fyuluta Yapamwamba Ya Subdomains mu Google Analytics

Tsopano mbiri yanu iyenera kusiyanitsa subdomain mu Akaunti yonse ya Analytics.

13 Comments

  1. 1
  2. 2
  3. 3

    Gawo la "pezani code" pa Google Analytics tsopano lili ndi magawo awiri:

    1. Mukutsata chiyani?
    Malo amodzi (osasintha)
    Mzinda: marketingtechblog.com

    Dera limodzi lokhala ndi ma subdomain angapo
    zitsanzo:
    http://www.marketingtechblog.com
    mapulogalamu.marketingtechblog.com
    sitolo.marketingtechblog.com

    Madera angapo apamwamba

    kenako bokosi lofufuzira la Adwords Tracking

    Nayi imodzi yanu: chifukwa chiyani msakatuli wanga wa safari aku PC sakuwonetsa zomwe zili ndi google koma samandipatsa mwayi wowunika Zosintha (zosintha pamasamba ochezera) ndi zina zotero?

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

    Wawa Doug,

    Ndinawonjezera script pamwambapa koma zikuwoneka kuti sizikugwira ntchito. Chilichonse chomwe ndadumpha chomwe mukudziwa? 

    Zikhala zothandiza kwambiri ngati munganditsogolere pa izi. 

    Zikomo ndi zabwino zonse,
    Nishanth T

    • 9

      Zinthu zingapo, @ google-1f23c56cd05959c64c268d8e9c84162e: disqus. Choyamba (komanso chowonekera kwambiri) ndikuwonetsetsa kuti nambala yanu ya UA yakonzedwa bwino. Sindikonda kulemba izi, koma nthawi zina timakopera ndikunama ndikuiwala. Chachiwiri… zimatenga maola ambiri kuti zitheke. Ndipatseni tsiku kenako muwone!

      • 10

        Hei @douglaskarr: disqus - Zikomo kwambiri poyankha. Timayamikiridwa kwambiri- kachidindo ka UA kakhazikika bwino. Anayang'ananso. Ndakhala ndikutsatira ndi nambala iyi kwa mwezi wopitilira. Ma microsites / sub-domains samawoneka mu GA. 

        Kulimbikitsa ...

  8. 11

    Zikomo! Zothandiza kwambiri. Ndili ndi nambala yofananira yomwe imagwira ntchito m'malo osiyanasiyana, kutengera ngati http kapena https amagwiritsidwa ntchito (makamaka kupatula ma cookie, chifukwa ndilinso ndimaphukusi angapo obwerera kumbuyo & ndikufuna kupewa maakaunti abwerezanso), koma JavaScript zosintha zinali zazing'ono kwambiri.

  9. 12

    Hei pamenepo chifukwa cha phunziroli lidali lothandiza kwambiri! Chifukwa chake ndikangowonjezera nambala ku madomeni anga onse ndi ziwerengero zomwe ma analytics akuwonetsa zikuphatikiza kuchuluka kwamagalimoto anga?

  10. 13

Mukuganiza chiyani?

Tsambali likugwiritsa ntchito Akismet kuchepetsa spam. Phunzirani momwe deta yanu ikufotokozera.