Siv Cov Phiaj Xwm Tawm mus taug qab Cov Nrov muaj npe hauv WordPress thiab Google Analytics

kev tshuaj ntsuam xyuas thoob ntiaj teb

Hauv kuv tus ncej tas los, Kuv nrhiav tau ib txoj kev nrhiav cov pawg WordPress los ntawm dynamically dhau cov npe cov npe ntawm cov ntawv sau rau Google Analytics. Qhov teeb meem nrog txoj hauv kev yog txhua zaus koj ua kom tiav qhov taug qab mus ua haujlwm, nws ua tiav ib nplooj ntawv saib. Yog li, yog tias koj muaj ntau pawg tau txheeb xyuas, koj yuav tsum ua ntau nplooj ntawv. Ywj!

Yog li kuv tau ua qee qhov khawb thiab txheeb xyuas tias koj tuaj yeem tsim phiaj xwm hauv Google Analytics thiab ntes cov qeb cov npe ua cov ntsiab lus rau qhov kev sib tw ntawd. Nrog qee qhov kev hloov me me ntawm cov cai, koj tuaj yeem yooj yim tsim phiaj los nqis tes, hu ua "Qeb".

Hloov kho koj cov lej Code

Tsis pub dhau koj lub vev xaib txhais taw, koj yuav pom koj cov ntawv cim Google Analytics cim npe:

_uacct = "UA-xxxxxx-x";
urchinTracker();

Thiab hloov qhov ntawd nrog cov lej no (nco ntsoov hloov koj tus UA-code nyob rau hauv qhov hloov ntawm txoj kab x-x):

_uacct = "UA-xxxxxx-x";
_uccn = "qeb"; _ucsr = "post"; _ucmd = "thov"; _ucct = "0"; cat_name. ","; }?> _uctr = " "; urchinTracker (); </script>

koj yuav tsum tam sim no teeb tsa lim kev cai rau koj txoj kev sib tw! Hauv ob peb hnub, koj yuav muaj peev xwm taug qab cov phiaj xwm hauv Google Analytics! Daim phiaj xwm phiaj xwm yuav yog "qeb", qhov chaw tshaj tawm yuav yog "tshaj tawm", hom ad yuav yog "thov" thiab version yuav yog "1.0"!

Google Kev Tshawb Fawb Txog Kev Tshawb Nrhiav

7 Comments

  1. 1
  2. 2

    Yog ...

    _ucsr = ”post”;
    _ucmd = ”thov”;
    _ucct = ”1.0 ″;

    … Txhua yam uas xav tau lossis kuv tuaj yeem mus tau tam sim ntawd nrog tsuas yog ntxiv phiaj xwm kev tshaj tawm thiab phiaj xwm phiaj xwm phiaj xwm?

    _uccn = ”cov ntsiab lus”;
    _uctr = ”teev, ntawm, cov lus tseem ceeb”;

  3. 3

    Ua tsaug Doug, Kuv tab tom ua raws li koj cov lus qhia tab sis kuv tau ploj ntawm kev tsim lub cim lim. Koj tau teeb tsa koj li cas?

    • 4

      Nyob zoo Fred,

      Kuv tseem ua tsi tau zoo thiab tau hloov pauv qee yam hauv kuv cov ntawv lim hiam txij thaum sau no. Koj yuav tsis ntseeg nws… tab sis kuv tsis tuaj yeem nco qab tias kuv teeb tsa nws li cas! (Doh!) Kuv yuav tsum tau ua ib co kev hloov kho engineering.

      Hmoov tsis zoo, Google Analytics muaj qee cov ntaub ntawv txaus ntshai!

      Doug

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.