Lim Subdomains hauv Google Analytics

ga

Nrog software ua ib pabcuam (SaaS) cov chaw muag khoom nyiam Ntaus txuas ntxiv, koj delegate ib subdomain thiab host koj blog rau ntawm subdomain sib txawv dua li koj lub vev xaib. Feem ntau, qhov no tau ua tiav nrog blog.domain.com thiab www.domain.com. Feem ntau cov tuam txhab siv cov kev cais tawm tag nrho hauv Google Analytics los soj ntsuam cov blog subdomain. Nws yeej tsis tsim nyog.

Google Analytics yuav tso cai koj los saib xyuas ntau lub subdomains nyob rau hauv tib profile. Ua li no, koj tsuas ntxiv ib txoj kab ntawm kab ntawv rau koj kev sau ntawv Google Analytics tam sim no:

Google Analytics Tsab Ntawv Tshiab

	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 ('tsab ntawv'); ga.type = 'ntawv nyeem / javascript'; ga.async = tseeb; ga.src = ('https:' == document.location.protocol? 'https: // ssl': 'http: // www') + '.google-analytics.com / ga.js'; var s = document.getElementsByTagName ('tsab ntawv') [0]; s.parentNode.insertBefore (ga, s);}) ();

Ntawv Google Analytics Qub

 try {
var pageTracker = _gat._getTracker("UA-XXXXXX-XX");
pageTracker._setDomainName (". example.com");
pageTracker._trackPageview (); } ntes (yuam kev) {}

Koj tsis tau ua tiav! Yog tias koj tsuas ua li ntawd, koj khiav qhov teeb meem ntawm txoj kev zoo ib yam raug ntsuas raws li ib qho URl hauv Google. Yog li - yog tias koj muaj index.php rau koj cov blog thiab www subdomains, lawv yuav ob leeg raug ntsuas raws li index.php. Yog tsis zoo. Raws li qhov tshwm sim, koj yuav tsum tau ua qee qhov kev xav zoo nkauj siab lim hauv tus as khauj!

Nkag mus rau Google Analytics thiab nyem Kho kom raug koj li Google profile. Txav nqes hauv nplooj ntawv uas koj tuaj yeem ntxiv lim thiab ntxiv lim lim siab nrog cov chaw hauv qab no:
Ua ntej tshaj Lim rau Cov Nqis hauv Google Analytics

Tam sim no koj qhov profile yuav tsum paub qhov txawv subdomain thoob plaws hauv tag nrho cov Analytics Account.

13 Comments

  1. 1
  2. 2
  3. 3

    Ntu “paste the code” ntu ntawm Google Analytics tam sim no muaj ob kauj ruam:

    1. Dab tsi yog koj taug qab?
    Ib tus sau (neej ntawd)
    Sau npe: marketingtechblog.com

    Ib tus sau nrog ntau tus subdomains
    Piv txwv:
    http://www.marketingtechblog.com
    apps.marketingtechblog.com
    khw.marketingtechblog.com

    Ntau hom theem saum toj kawg nkaus

    thiab tom qab ntawd kos lub thawv rau Adwords Taug Qab

    Nov yog ib qho rau koj: yog vim li cas kuv qhov browser safari rau PC qhia qhov tsis muaj google nta tab sis tsis muab kuv qhov kev xaiv los txheeb xyuas Kev Hloov Tshiab (kev hloov kho ntawm lub vev xaib) thiab cov zoo li?

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

    Kuv tuaj los Doug,

    Kuv ntxiv cov ntawv sau saum toj no tab sis nws tsis zoo li ua haujlwm. Txhua yam uas kuv swb uas koj tau paub? 

    Yuav pab tau heev yog tias koj tuaj yeem coj kuv ua ntej ntawm no. 

    Tsaug thiab Txog,
    Nishanth T

    • 9

      Muaj qee yam, @ google-1f23c56cd05959c64c268d8e9c84162e: disqus. Ua ntej (thiab pom tseeb tshaj plaws) yog los xyuas kom meej tias koj tus lej UA raug teeb tsa zoo. Kuv ntxub sau ntawd, tab sis qee zaum peb luam thiab muab tshuaj txhuam thiab tsis nco qab. Thib ob… nws yuav siv sij hawm ntau teev thiaj ua tau tiag. Muab rau ib hnub thiab tom qab ntawd pom!

      • 10

        Hav @douglaskarr: disqus - ua tsaug ntau rau cov lus teb. Heev ntau menyuam- UA chaws UA LI. Soj ntsuam nws dhau lawm. Kuv tau taug nws nrog cov cai no rau ntau dua ib lub hlis tam sim no. Cov microsites / sub-domains tsis tshwm hauv GA. 

        Cheers…

  8. 11

    Ua tsaug! Pab heev. Kuv muaj tib txoj kev ua haujlwm hauv ntau lub chaw sib txawv, nyob ntawm seb http lossis https yog siv (feem ntau rau cais cov ncuav qab zib, vim tias kuv tseem muaj ob peb lub pob nyiaj rov qab sib txawv & Kuv xav kom zam kev ua si re-style account), tab sis cov javascript hloov tau zoo nkauj tsis tau muaj hnub nyoog.

  9. 12

    Hav muaj ua tsaug rau qhov kev qhia no nws tau pab tau zoo heev! Yog li ib zaug kuv ntxiv cov lej rau txhua txhua kuv cov chaw hauv qab yog cov stats uas cov kev tsom xam pom tias yuav suav nrog kev nkag los ntawm kuv cov subdimains?

  10. 13

Yuav ua li cas koj xav hais tias?

Qhov Web site no siv Akismet los txo cov kev pabcuam. Kawm li cas koj cov ntaub ntawv tawm tswv yim tiav.