Icebo lokucoca izihlokwana kuGoogle Analytics

ga

Ngesoftware njengenkonzo (SaaS) abathengisi abathanda Isihlomelo, uthumela isizinda esincinci kwaye ubambe ibhlog yakho kwindawo engezantsi kunewebhusayithi yakho. Ngokwesiqhelo, oku kuyenziwa ngeblog.domain.com kunye ne-www.domain.com. Ngokwesiqhelo iinkampani zisebenzisa iakhawunti eyahlukileyo ngokupheleleyo kuGoogle Analytics ukubeka esweni ibhlog yangaphantsi. Ngokwenyani ayimfuneko.

Uhlalutyo lukaGoogle luyakuvumela ukuba ujonge ii-subdomains ezininzi kwiprofayili enye. Ukwenza oku, yongeza nje umgca wekhowudi kwiskripthi sakho sangoku seGoogle Analytics:

Isicatshulwa esitsha seGoogle 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 = yinyani; ga.src = ('https:' == document.location.protocol? 'https: // ssl': 'http: // www') + '.google-analytics.com / ga.js'; var s = uxwebhu.getElementsByTagName ('script') [0]; s.parentNode.insertBefore (ii, ii);}) ();

Isikripthi esidala sikaGoogle

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

Awukagqibi okwangoku! Ukuba wenza nje oko, uqhuba umba weendlela ezifanayo ezilinganiswa phantsi kwe-URl enye kuGoogle. Ke-ukuba une-index.php kwibhlog yakho kunye ne-www subdomains, zombini ziya kulinganiswa njenge-index.php. Ayilunganga loo nto. Ngenxa yoko, kuya kufuneka wenze ukucoca okuqhubela phambili kwiakhawunti!

Ngena kuGoogle Analytics kwaye ucofe uHlela kwiprofayile kaGoogle. Skrolela ezantsi kwephepha apho unokongeza khona isihluzi kwaye ungeze isihluzi esihambele phambili ngezi zicwangciso zilandelayo:
Isihluzi esiPhambili kwii-Subdomains kuGoogle Analytics

Ngoku iprofayile yakho kufuneka yahlule i-subdomain kuyo yonke iAkhawunti yokuHlaziya.

13 Comments

  1. 1
  2. 2
  3. 3

    Icandelo elithi "ncamathisela ikhowudi" kwi-Google Analytics ngoku linamanyathelo amabini:

    1. Ulandelela ntoni?
    Indawo enye (ehlala ikho)
    Indawo: marketingtechblog.com

    I-domain enye ene-subdomains ezininzi
    imizekelo:
    http://www.marketingtechblog.com
    apps.marketingtechblog.com
    store.marketingtechblog.com

    Iindawo ezininzi zomgangatho ophezulu

    kunye nebhokisi yokukhangela ye-Adwords Tracking

    Nantsi enye yakho: kutheni i-browser yam ye-safari yePC ibonisa i-nogoogle features kodwa ingandiniki ukhetho lokujonga uhlaziyo (uhlaziyo lwesayithi yentlalo) kunye nokunye okunjalo?

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

    Molo Doug,

    Ndongeze iskripthi esingasentla kodwa asibonakali sisebenza. Ngaba kukho into endiyityileyo eniyaziyo guys? 

    Kuya kuba luncedo kakhulu ukuba unokundisa phambili kule nto. 

    Enkosi kwaye Malunga,
    Nishanth T

    • 9

      Izinto ezimbalwa, @google-1f23c56cd05959c64c268d8e9c84162e:disqus. Okokuqala (kwaye eyona nto icacileyo) kukuqinisekisa ukuba ikhowudi yakho ye-UA isetwe ngokufanelekileyo. Ndiyakucaphukela ukubhala oko, kodwa ngamanye amaxesha siyakopa kwaye sincamathelise kwaye silibale. Okwesibini ... kuya kuthatha iiyure ezininzi ukubamba. Nika usuku kwaye ubone!

      • 10

        Molo @douglaskarr:disqus-Enkosi kakhulu ngempendulo. Ibulelwe kakhulu- ikhowudi ye-UA iseti ngokugqibeleleyo. Yijonge kwakhona. Bendiyilandelela ngale khowudi isithuba esingaphezulu kwenyanga ngoku. Ii-microsites/sub-domains azibonakali kwi-GA. 

        Masinwabe…

  8. 11

    Enkosi! Uncedo kakhulu. Ndinekhowudi efanayo esebenzayo kwimimandla eyahlukeneyo, kuxhomekeke ekubeni i-http okanye i-https iyasetyenziswa (ubukhulu becala ukwahlula iikuki, kuba ndikwanayo neepakethe ezahlukeneyo zomva-mva kwaye ndifuna ukunqanda ii-akhawunti ze-replay-style), kodwa i-javascript. utshintsho beluncinci kakhulu.

  9. 12

    Heyi apho enkosi ngesi sifundo sibe luncedo kakhulu! Ke nje ukuba ndongeze ikhowudi kuzo zonke iindawo zam eziphantsi ngaba izibalo ezibonisa uhlalutyo ziya kubandakanya i-traffic kwi-subdimains yam?

  10. 13

Ingaba ucinga ntoni?

Le sayithi isebenzisa i-Akismet ukunciphisa ugaxekile. Funda indlela idatha yakho yokubhaliweyo isetyenziswe ngayo.