Kānana i nā subdomain ma Google Analytics

ga

Me nā polokalamu e like me kahi lawelawe (SaaS) mea kūʻai aku e like me Hoʻohui, ʻelele ʻoe i kahi subdomain a hoʻokipa i kāu blog ma kahi subdomain ʻokoʻa ma mua o kāu pūnaewele. ʻO ka maʻamau, hoʻokō ʻia kēia me blog.domain.com a me www.domain.com. Hoʻokomo nā ʻoihana maʻamau i kahi moʻokāki kaʻawale loa ma Google Analytics e nānā i ka subdomain blog. ʻAʻole pono ia.

E ʻae ʻo Google Analytics iā ʻoe e nānā i nā subdomain he nui i loko o kahi kikoʻī. E hana ai i kēia, hoʻohui wale ʻoe i kahi laina o ke code i kāu script Google Analytics i kēia manawa:

Palapala Google Analytics hou

	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 = 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);}) ();

Palapala Kahiko Google Analytics kahiko

 try {
var pageTracker = _gat._getTracker("UA-XXXXXX-XX");
ʻaoʻaoTracker._setDomainName (". example.com");
ʻaoʻaoTracker._trackPageview (); } hopu (err) {}

ʻAʻole ʻoe i pau. Inā hana wale ʻoe i kēlā, holo ʻoe i ka pilikia o nā ala like e ana ʻia ma lalo o hoʻokahi URl ma Google. No laila - inā he index.php kāu ma kāu blog a me nā subdomain www, e ana ʻia lāua ʻelua ma ke ʻano he index.php. ʻAʻole maikaʻi kēlā. A ʻo kahi hopena, pono ʻoe e hana i kahi kānana holomua i ka moʻokāki.

ʻEʻe i Google Analytics a kaomi i ka hoʻoponopono ma kāu ʻikepili Google. E kaomi i ka ʻaoʻao kahi e hiki ai iā ʻoe ke hoʻohui i kahi kānana a hoʻohui i kahi kānana holomua me nā hoʻonohonoho aʻe:
Kānana kiʻekiʻe no nā subdomain ma Google Analytics

I kēia manawa pono e hoʻokaʻawale kāu ʻikepili i ka subdomain ma o ka Waihona Analytics.

13 Comments

  1. 1
  2. 2
  3. 3

    ʻO ka ʻāpana "kāpili i ke code" ma Google Analytics ʻelua mau ʻanuʻu:

    1. He aha kāu e ʻimi nei?
    Kahi kikowaena hoʻokahi (paʻamau)
    Domain: marketingtechblog.com

    Hoʻokahi kikowaena me nā subdomain he nui
    ano he kumu hoʻohālike:
    http://www.marketingtechblog.com
    apps.marketingtechblog.com
    store.marketingtechblog.com

    Nā kāʻei kūlana kiʻekiʻe he nui

    a laila kahi pahu hōʻoia no ka ʻimi ʻana ʻo Adwords

    Eia kekahi nou: no ke aha e nānā pono ʻole ai kaʻu polokalamu mākaʻikaʻi safari no PC i nā hiʻohiʻona google ʻole akā ʻaʻole hāʻawi iaʻu i kahi koho e nānā i nā Hoʻohou (ʻike pūnaewele hou) a me nā mea like?

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

    Aloha Doug,

    Ua pākuʻi wau i ka palapala i luna aʻe akā ʻaʻole naʻe e holo. ʻO kekahi mea i heʻe wau a ʻolua i ʻike ai? 

    E kōkua nui inā hiki iā ʻoe ke lawe iaʻu i mua ma kēia. 

    Mahalo a aloha,
    ʻO Nishanth T

    • 9

      Nā mea ʻelua, @ google-1f23c56cd05959c64c268d8e9c84162e: disqus. ʻO ka mea (a maopopo loa) e hōʻoia i ka hoʻonohonoho pono ʻia o kāu code UA. Ke inaina wau e kākau i kēlā, akā i kekahi manawa kope mākou a kāpili a poina. ʻO ka lua ... he mau hola ka lōʻihi e loaʻa ai. Hāʻawi i kahi lā a laila ʻike!

      • 10

        Hey @douglaskarr: disqus - Mahalo nui no ka pane. Mahalo nui ʻia- hoʻonohonoho pono ʻia ke code UA. Ua hōʻoia hou ʻia nō hoʻi. Ke nānā nei wau iā ia me kēia code no hoʻokahi mahina i kēia manawa. ʻAʻole hōʻike ʻia nā microsite / sub-domains i ka GA. 

        Ke aloha…

  8. 11

    Mahalo! Kōkua nui. Loaʻa iaʻu ka pāʻālua like i ka hana ʻana ma nā kāʻei ʻokoʻa, kaukaʻi ʻia inā http a https paha e hoʻohana ʻia (ka hapanui e hoʻokaʻawale i nā kuki, no ka mea he ʻelua mau pūʻali hoʻi ʻaoʻao ʻelua a makemake wau e hōʻalo i nā moʻokāki replay-style), akā ka ʻōlelo javascript ua liʻiliʻi nā loli.

  9. 12

    Hey laila mahalo no kēia aʻo ua kōkua nui ia! No laila ke hoʻohui wau i ka pāʻālua i kaʻu mau kāʻei kapu āpau nā helu i hōʻike ʻia e ka analytics e hoʻopili i nā kaʻa mai kaʻu mau subimain?

  10. 13

Pehea kou manaʻo?

Ke hoʻohana nei kēia pūnaewele i ka Akismet e ho'ēmi i ka spam. E aʻo pehea e hanaʻia ai kāuʻikeʻikepili.