Yuav ua li cas Siv Google Analytics Kev Cai Pawg nrog Google Tag Manager

qha pawg

Hauv tsab xov xwm dhau los, Kuv qhia yuav ua li cas siv Google Tag Manager thiab Universal AnalyticsCov. Ntawd yog qhov pib yooj yim pib tsuas yog coj koj tawm hauv av, tab sis Google Tag Manager yog ib qho tsis yooj yim (thiab txoj) cov cuab yeej uas tuaj yeem siv rau kaum ob ntawm cov phiaj xwm sib txawv.

Thaum kuv paub tias qee qhov kev txhim kho tuaj yeem txo qee qhov nyuaj ntawm qhov kev nqis tes no, kuv xaiv mus rau phau ntawv nrog plugins, hloov pauv, txhais thiab cim npe. Yog tias koj muaj qhov zoo dua ntawm kev siv lub tswv yim no tsis muaj qhov chaws - los ntawm txhua txoj hauv kev muab qhia rau hauv cov lus!

Ib ntawm cov tswv yim no yog qhov peev xwm nthuav Cov ntsiab lus ua ke hauv Universal Analytics siv Google Analytics. Kab lus no yog qhov yuav los ua ke ntawm cov khoom sib dhos, teeb meem yuav tsum paub txog, thiab cov lus qhia ib kauj ruam ib kauj ruam hauv kev tshwj xeeb Hauv Cov Ntaus Cov Lus Siv DuracellTomi lub Google Tag Manager plugin rau WordPress, Google Tag Manager thiab Google Analytics.

Google Tag Manager Rant

Rau xws li ib qho cuab yeej amazingly, Google txhawb cov khoom siv ntxiag. Kuv tsis yog tsuas yog yws, Kuv yog tus coj ncaj ncees. Tag nrho lawv cov yeeb yaj kiab, xws li ib qho saum toj no, yog cov yeeb yaj kiab ci thiab cov yeeb yaj kiab ntawm dab tsi tuaj yeem ua tiav nrog kiag li tsis muaj kauj ruam cov kauj ruam yeeb yaj duab, tsis muaj screenshots hauv lawv cov lus, thiab tsuas yog cov lus qhia txog qib kawg. Nco ntsoov, lawv yuav suav tag nrho cov kev xaiv thiab yooj uas koj muaj ntawm koj pov tseg tab sis koj tsis tshua muaj cov ntsiab lus ntawm kev siv nws.

Tom qab 30 tsab ntawm deploying kuv cov ntawv cim npe, kaum ob ntawm kev hloov kho tsis pub dhau Google Analytics, thiab ob peb lub lis piam dhau mus ntawm kev hloov pauv mus kuaj… Kuv pom qhov no ua rau muaj kev ntxhov siab tsis txaus ntseeg. Cov no yog ob qho kev ua lag luam uas yuav tsum ua haujlwm seamlessly tab sis hais tiag muaj yuav luag tsis muaj cov khoom lag luam sib txuas dab tsi nyob sab nraud ob peb thaj teb kom npaj ua ntej.

Google Cov Ntsiab Lus Pawg Rant

Thaum hais tias categorization thiab tagging tau nyob ib ncig ntawm ob peb xyoo lawm, koj yuav tsis pom nws hauv lub peev xwm ntawm Cov Ntsiab Lus Pawg. Tej zaum kuv tshaj tawm cov ntawv tshaj tawm zoo li no uas koom nrog ntau pawg, kaum ob lossis yog li cim npe, duab thaij duab, thiab vis dis aus. Nws puas yuav yog qhov txaus luag rau hlais thiab ntsuav tias cov ntaub ntawv siv Google Analytics? Zoo, hmoov zoo, vim tias koj lub peev xwm los tsim pab pawg cov ntsiab lus raug txwv. Tsis muaj txhais tau tias kev kis ib pawg ntawm cov pawg, cov cim npe lossis cov yam ntxwv rau Google Analytics. Koj nyob nraum nyam nrog yeej 5 cov ntawv nyeem tsuas siv tau ib qho sib txawv txhua.

Raws li qhov tshwm sim, Kuv tau tsim Kuv Cov Ntsiab Lus Teeb Pawg raws li hauv qab no:

  1. Cov Ntsiab Lus - Yog li hais tias kuv tuaj yeem saib cov ntawv sau xws li “yuav ua li cas rau” thiab lwm cov ntsiab lus feem ntau.
  2. Cov Ntsiab Lus Qeb - Yog li ntawd kuv tuaj yeem saib ntawm thawj qeb thiab pom tias txhua pawg nrov npaum li cas thiab cov ntsiab lus ua dab tsi hauv.
  3. Cov Ntsiab Lus Sau - Yog li kuv tuaj yeem saib peb cov qhua sau thiab pom qhov twg yog qhov kev tsav sib koom thiab kev hloov pauv.
  4. Cov Ntsiab Lus Hom - Yog li ntawd kuv tuaj yeem saib ntawm infographics, podcasts, thiab cov yeeb yaj kiab kom pom tias cov ntawv ntawd ua dab tsi piv rau lwm cov hom ntsiab lus.

Cov seem ntawm cov kev qhia no yog raws li qhov tseeb uas koj twb tau sau npe rau Google Tag Manager.

Kauj ruam 1: Teem Google Analytics Cov Ntsiab Lus Pawg

Koj tsis tas yuav muaj cov ntaub ntawv tuaj rau Google Analytics txhawm rau txhawm rau teeb tsa koj Cov Lus Sib Koom. Tsis pub dhau Google Analytics, taug kev tswj hwm thiab koj yuav pom Cov Ntsiab Lus Tso Npe nyob hauv cov npe:

cov ntsiab lus-pab pawg-admin

Hauv Cov Pawg Cov Ntsiab Lus, koj yuav xav tau ntxiv rau txhua tshooj lus:

Ntxiv Cov Ntsiab Lus Pawg

Nco ntsoov ob tug xub! Txuag koj tus kheej kom tsis txhob muab koj cov plaub hau hle tawm thaum koj cov ntaub ntawv tsis qhia nyob rau hauv Google Analytics, yuav tsum ceevfaj hauv kev ntsuas ob lub qhov qhab nia koj tus lej. Vim li cas qhov no txawm yog ib qho kev xaiv dhau ntawm kuv.

Tiav cov ntsiab lus sau ua pawg yuav tsum zoo li qhov no (thaum koj nyem tshawb… vim tias vim qee qhov Google Analytics nyiam kev tsim txom peb cov neeg siv tsis tseem ceeb uas xav paub vim li cas lawv tseem tsis tau txheeb tus lej ntau ... Oh yog tias tsis tsim txom txaus, koj yuav tsis tuaj yeem rhuav tshem lub ntsiab lus ua pawg. Koj tsuas tuaj yeem ua tsis tau nws.)

cov ntsiab lus-pab pawg-daim ntawv teev

Whew… saib zoo. Peb txoj haujlwm tiav hauv Google Analytics! Txawv ntawm… peb yuav tau ntsuas thiab xa qee cov ntaub ntawv tom qab uas peb tuaj yeem soj ntsuam.

Kauj ruam 2: Teem DuracellTomi's WordPress Plugin rau Google Tag Manager

Txuas ntxiv mus, peb yuav tsum pib tshaj tawm cov ntaub ntawv uas Google Tag Tus Thawj Coj tuaj yeem ntes, txheeb xyuas, thiab tsim Google Analytics code los ntawm. Qhov no yuav yog qhov nyuab heev nws tsis yog qee qhov ua tau zoo WordPress tsim tawm muaj. Peb nyiam cov kev xaiv muaj los ntawm DuracellTomi's WordPress pluginCov. Nws tau tswj tau zoo thiab txhawb nqa.

Cuam koj Google Tag Tus Thawj Saib Xyuas ID los ntawm koj qhov chaw ua haujlwm hauv Google Tag Manager thiab muab tso rau hauv lub plugin qhov chaw dav> Google Tag Tus Thawj Saib Xyuas ID teb.

google-tag-tus tswj-id

Kuv xav pom zoo txhim kho lub plugin los ntawm kev siv tus txoj kev cai qhov twg koj ntxig tsab ntawv rau koj lub ntsiab lus (feem ntau ntawm cov ntawv header.php). Yog tias koj tsis tas, nws yuav ua rau lwm qhov teeb meem uas yuav tsav koj vwm tiag tiag ... cov ntaub ntawv txheej txheem uas cov plugin tau xa mus rau Google Tag Manager yuav tsum sau ua ntej tsab ntawv yog loaded rau Google Tag Manager. Kuv tsis nkag siab qhov laj thawj koom nrog ntawd, tsuas yog paub tias koj yuav rub koj cov plaub hau tawm vim li cas cov ntaub ntawv tsis raug xa mus kom tsis muaj qhov kev tso kawm no.

google-tag-tus tswj-kev cai

Cov kauj ruam tom ntej yog los configure dab tsi dataLayers koj xav kom dhau mus rau Google Tag Manager. Hauv qhov xwm txheej no, kuv tab tom dhau hom post, cov pawg, cov cim npe, cov ntawv sau lub npe, thiab cov ntawv luam npe. Koj yuav pom tias ntau lwm txoj hauv kev muaj, tab sis peb twb tau piav qhia txog cov pawg peb tau tsim kho thiab vim li cas.

Google Tag Manager WordPress dataLayer

Txij ntawm no mus, lub plugin raug teeb tsa thiab Google Tag Tus Thawj Coj thauj khoom, tab sis koj tsis tshua muaj cov ntaub ntawv dhau mus rau Universal Analytics (tseem). Yog tias koj saib qhov ntawm koj nplooj ntawv tam sim no, koj yuav pom cov ntaub ntawv laiers luam tawm rau Google Tag Manager, txawm hais tias:

Cai Saib

Daim ntawv ceeb toom tias cov ntaub ntawv lawb koom nrog cov khub tseem ceeb-nqi (KVPs). Hauv Kauj ruam 4 Hauv qab no, peb yuav qhia koj seb yuav txheeb xyuas cov no li cas yog tsis saib qhov chaws ntawm koj nplooj. Rau DuracellTomi Plugin, tus yuam sij yog:

  • pageTitle - Nov yog lub npe ntawm nplooj ntawv.
  • pagePostType - Nov yog nws yog kab lossis nplooj ntawv.
  • pagePostType2 - Nov yog seb nws yog tib qho kev tshaj tawm, qeb txheej txheem, lossis nplooj ntawv.
  • pageCategory - Qhov no yog qhov sib dhos ntawm cov pawg tau muab tso rau.
  • pageAttributes - Qhov no yog ib qho array ntawm cov cim npe cov ncauj lus dai rau.
  • pagePostAuthor - Nov yog tus sau lossis tus ntawv.

Khaws cov no, peb yuav xav tau cov tom qab thaum peb sau peb cov chiv.

Kuv piv txwv tias koj muaj Google Analytics plugin thauj khoom lossis koj tau teeb tsa lub analytics tsab ntawv cim rau hauv koj lub ntsiab koj tus kheej. Sau koj tus Google Analytics ID (zoo li UA-XXXXX-XX), koj yuav xav tau yam ntxiv tom ntej. Koj yuav xav tau tshem tawm cov ntawv sau lossis cov plugin, tom qab ntawd thauj Universal Analytics los ntawm Google Tag Manager.

Kauj ruam 3: Teem Google Tag Manager

Yog tias koj poob siab txog qhov tsis muaj Google Analytics luam tawm ntawm koj lub xaib ntawm lub sijhawm no, cia peb ua qhov ntawd sai sai ua ntej peb ua qhov kev hloov kho. Thaum koj nkag rau Google Tag Manager, xaiv koj Ua Haujlwm:

  1. xaiv Ntxiv Ib Lossis
  2. xaiv Kev Ntsuam Xyuas Thoob Ntiaj Teb, rau koj cov npe tag rau sab laug sab saum toj thiab sau koj tus id-XXXXX-XX id
  3. Tam sim no qhia tus cim thaum hluav taws tam sim no los ntawm txhaj rau Qhov Tsim Nyog thiab xaiv tag nrho cov nplooj ntawv.

Kev Txheeb Ze Universal Ntxiv Ntxiv Tag Google Tag Manager

  1. Koj tsis ua tiav! Tam sim no koj yuav tsum nyem luam tawm thiab koj daim pib yuav nyob thiab analytics yuav muaj thauj khoom!

Kauj ruam 4: Puas yog Google Tag Tus Thawj Coj Ua Haujlwm?

Oh, koj yuav mus hlub tus no. Google Tag Tus Thawj Coj ua tau los nrog cov qauv los kuaj koj cov cim kom pab koj daws teeb meem thiab txhim kho lawv. Muaj cov ntawv qhia me ntsis ntawm Kev Xaiv Luam Tawm uas koj tuaj yeem nyem rau - saib ua ntej.

Google Tag Manager Saib Ua Ntej thiab Debug

Tam sim no qhib lub vev xaib uas koj tab tom ua haujlwm nyob rau hauv ib lub tab tshiab thiab koj yuav pom cov Tus Thawj Coj Tag Nrho cov ncauj lus hauv vaj huam sib luag footer:

Google Tag Manager - Saib Ua Ntej thiab Debug

Ntawd yog txias npaum li cas? Thaum peb tau dhau los ua dhau cov ntsiab lus Pawg Cov Ntaub Ntawv siv Google Tag Manager, koj tuaj yeem pom dab tsi tag yog tua, qhov dab tsi yog tsis tua, thiab cov ntaub ntawv uas tau dhau! Hauv qhov xwm txheej no, nws yog lub npe peb tau tis npe Kev Txheeb Xyuas Thoob Ntiaj Teb. Yog tias peb tau nyem rau ntawm qhov ntawd, peb tuaj yeem pom cov ntaub ntawv ntawm Google Analytics tag.

Kauj ruam 5: teeb tsa Cov Ntawv Qhia Cov Ntsiab Lus hauv Google Tag Tus Thawj Coj

Woohoo, peb yuav luag tiav! Zoo, tsis tau tiag tiag. Nov yog kauj ruam uas yuav ua tau tiag tiag rau koj lub sijhawm nyuaj. Vim li cas? Vim tias kev tua lub pageview hauv Universal Analytics nrog Cov Ntsiab Lus Tsim yuav tsum ua kom tiav hauv ib qho kev tshwm sim. Logically, ntawm no yog yuav ua li cas nws tau tshwm sim:

  1. Cov nplooj ntawv WordPress yog thov.
  2. Cov WordPress Plugin qhia cov txheej txheem txheej.
  3. Google Tag Manager tsab ntawv ua tiav thiab dhau tus txheej txheem txheej los ntawm WordPress rau Google Tag Manager.
  4. Google Tag Tus Thawj Coj qhov chaw nyob tau txheeb xyuas hauv cov txheej txheej txheej txheej.
  5. Google Tag Manager Qhov Kev Kawm tau raug txheeb xyuas raws li cov hloov pauv.
  6. Google Tag Tus Thawj Coj tua hluav taws cov nplais tshwj xeeb raws li cov chiv.
  7. Daim cim npe tshwj xeeb raug rho tawm haujlwm uas thawb cov ntsiab lus tsim nyog pab pawg cov ntaub ntawv rau Google Analytics.

Yog li… yog tias thawj qhov tshwm sim yog tias cov dataLayer tau dhau mus rau Google Tag Manager, ces peb yuav tsum muaj peev xwm nyeem cov khoom siv tseem ceeb. Peb tuaj yeem ua qhov no los ntawm kev txheeb xyuas cov sib txawv dhau.

Google Tag Manager Tus Neeg Siv Txhais Qhov Txiaj Ntsig

Tam sim no koj xav tau ntxiv thiab txhais txhua yam ntawm cov tsiaj ntawv dhau ntawm cov txheej txheem txheej:

  • pageTitle - Cov Ntsiab Lus Ntsiab Lus
  • pagePostType - Cov Hom Lus
  • pagePostType2 - Cov Ntsiab Lus Hom (Kuv nyiam qhov no siv qhov no txij li nws tshwj xeeb ntau)
  • pageCategory - Cov Ntsiab Lus Qeb
  • pageAttributes - Cov ncauj lus ntsiab lus (koj tuaj yeem xav siv qhov no ib lub sijhawm rau ib lub sijhawm es tsis txhob ua ntau pawg)
  • pagePostAuthor - Sau Cov Ntsiab Lus

Ua qhov no los ntawm kev sau rau hauv Cov Ntaub Ntawv Txheej Txheeb Ze Npe thiab txuag lub npe sib txawv:

Kev Hloov Kho Mus Ncig

Txij ntawm no mus, Google Tag Tus Thawj Coj paub kev nkag siab yuav ua li cas nyeem cov dataLayer hloov pauv. Nws yuav zoo yog tias peb tuaj yeem hla cov ntaub ntawv no rau hauv Google Analytics, tab sis peb tsis tuaj yeem. Vim li cas? Vim tias koj cov pawg ntawm cov pawg lossis cov cim npe yuav dhau lub cim txwv teeb tsa ntawm txhua Cov Ntsiab Lus Tso Tawm hauv Google Analytics. Google Analytics (tu siab) tsis tuaj yeem lees txais ib qho kev ntsuas. Yog li peb yuav tau ua nws li cas? Ugh… qhov no yog qhov nyuaj siab.

Koj yuav tsum tau sau ib qho txhais uas tshawb rau koj qeb lossis lossis lub npe nyob rau hauv cov hlua khi dhau ntawm cov dataLayer sib txawv txav. Peb tsis ua li cas dhau cov npe, tus sau, ntaus txij li lawv tshaj ib kab lus cov lus. Tab sis qeb tsis yog li ntawd peb yuav tsum rov xyuas dua thawj (thawj) pawg kis dhau los ntawm kev ua haujlwm. Qhov zam, tau mas, yog tias koj tsis xaiv ntau pawg rau ib qho… ces koj tuaj yeem nyem lub pob thiab xaiv Cov Ntsiab Lus Cov Ntsiab Lus.

Ntawm no yog ib nrab saib rau peb cov npe ntawm Cov Ntaus:

Ua los ntawm qeb

Ntawm no yog ib qho piv txwv ntawm ib yam ntawm cov chiv ntawv rau peb cov qeb rau Cov Lag Luam Cov Ntsiab Lus:

Qee Nplooj Saib Ntaus

Peb muaj cov lus qhia tsis tu ncua ntawm no uas ntais ntawv thawj (thawj) qeb dhau hauv cov kab hauv cov dataLayer, tom qab ntawd peb paub tseeb tias nws yog ib qho kev tshaj tawm.

Yog tias koj muaj lub sijhawm nyuaj los sau cov lus sib qhia tas li, koj tuaj yeem xav kom cia li tsum tsis txhob rub koj cov plaub hau peb thiab rov qab mus FiverrCov. Kuv tau muaj qhov tshwm sim zoo kawg ntawm Fiverr - thiab kuv ib txwm nug rau qhov hais tawm nrog rau cov ntaub ntawv pov thawj ntawm nws ua haujlwm li cas.

Thaum koj tau txhais teeb tsa rau txhua qeb, koj npaj tau tsim koj daim ntawv cim npe! Peb lub tswv yim ntawm no yog qhov yuav tsum tau los xub sau qhov ntes-txhua tus Universal Analytics tag (UA), tab sis tsis raug rho tawm thaum twg ib yam ntawm peb pawg cim tau raug rho tawm haujlwm. Cov tiav ua tiav zoo nkaus li zoo li no:

Cim npe hauv Google Tag Tus Thawj Coj

Zoo… qhov no yog nws! Tam sim no peb yuav coj tag nrho cov khawv koob ua ke nrog peb cov cim npe. Hauv qhov ua piv txwv, Kuv mus dhau qhov Cov ntsiab lus ua ke rau ib qho kev xa tawm uas yog categorized nrog Cov Ntsiab Lus Ua Lag Luam (“cov ntsiab lus”):

Pawg Cov Ntsiab Lus Pawg

Sau koj daim pib, sau koj tus lej Google Analytics, thiab mam li nthuav dav Ntau Qhov ChawCov. Hauv seem ntawd, koj yuav pom Cov Ntsiab Lus Pawg nyob qhov twg koj yuav xav nkag rau Tus lej Index raws li qhov koj tau nkag rau hauv Google Analytics Admin nqis.

Ntawm no yog lwm yam ruam ... qhov kev txiav txim yuav tsum sib phim qhov kev txiav txim los ntawm koj Analytics Admin chaw rau cov ntaub ntawv. Lub kaw lus tsis ntse kom ceev tau cov qhob rau txoj kev ntsuas tus lej.

Txij li cov qeb tsis dhau (vim yog qhov teeb meem tsis yooj yim), koj yuav tsum ntaus koj qeb rau Index 2. Txawm li cas los xij, rau lwm 3 pawg cov ntsiab lus, koj tsuas yog nyem lub npov sab xis thiab xaiv cov sib txawv uas yog kis ncaj qha rau hauv cov dataLayer. Tom qab ntawv koj yuav tsum xaiv tus txhais thiab txuag koj lub cim npe!

Rov ua rau txhua ntawm koj pawg. Tom qab ntawd nco ntsoov rov qab mus rau koj UA (ntes-txhua) cim npe thiab ntxiv kev zam rau txhua ntawm koj pawg. Saib ua ntej thiab debug sim thiab paub tseeb tias koj tau tua koj cov cim npe thiab xa cov ntaub ntawv xa mus rau cov ntsiab lus pawg kom raug.

Koj yuav tsum muaj peev xwm txheeb xyuas txhua yam, tab sis koj tseem yuav tau tos ob peb teev rau Google Analytics kom thiaj caum tau. Lwm zaus koj nkag mus hauv, koj yuav tau siv Cov Npe Npe, Cov Ntsiab Lus Ntsiab Lus, thiab Cov Ntsiab Lus Sau cais thiab dice koj cov ntaub ntawv hauv Google Analytics!

3 Comments

  1. 1

    Nyob zoo Douglas,

    Ua tsaug rau siv sijhawm los tso cov ntawv no. Raws li tus kws tshaj lij uas tau siv sijhawm ntau ntawm nws lub sijhawm ua haujlwm nrog Google Tag Manager thiab Google Analytics, Kuv xav qhia qee qhov kev xav uas kuv muaj rau cov ntsiab lus uas koj tau tsa.

    Kuv xav tias muaj qee qhov tsis muaj zog nrog ob qho cuab yeej; qhov kev teb no tsis yog yuav tsom mus rau qhov ntawd. Theej, Kuv yuav mus rau cov ntsiab lus hauv koj tsab xov xwm uas kuv xav tias koj raug lawm, thiab lwm qhov chaw uas kuv tsis txaus siab pom zoo. Kuv ntseeg tias hom kev sib tham no muaj kev noj qab haus huv nyob hauv peb tus kheej. Kuv tabtom tsis sim troll.

    "Rau tej lub cuab tam amazingly, Google txhawb cov khoom nqus tau nqus"

    Kuv xav tias koj saib ntawm cov ntaub ntawv tsis raug. Txog rau yeeb yaj kiab "qib siab", yog - koj yuav tsis tau mus deb heev. Google cov ntaub ntawv yeej tau siv los nqus, tab sis tam sim no nws zoo dua.

    Txij li ob qho tag nrho GTM thiab GA yog cov cuab yeej uas xav tau ncaj ncees ntawm cov txuj ci kev tshawb fawb los siv kom raug, Kuv xav qhia tias koj cov neeg nyeem tig mus rau kev tsim cov lus qhia rau cov khoom no:

    https://support.google.com/tagmanager/
    https://developers.google.com/tag-manager/devguide

    Tsis tas li, hauv is taws nem tsis muaj qhov yooj yim ntawm kev siv tau yooj yim rau kev ua lub hauv paus txawm li cas los xij heck koj xav nrog GTM. Cov peev txheej zoo tshaj plaws ntawm kev paub yog:

    https://www.simoahava.com/
    https://www.thyngster.com/
    http://www.lunametrics.com/blog/

    Yeej, txhua yam uas kuv xav sau kuv tus kheej txog GTM twb tau muaj ntawm peb.

    Raws li kuv txhawj xeeb, cov ntawv AZ tsis tas yuav tuaj ntawm Google. Lub zej zog yog qhov muaj zog heev koj tuaj yeem nrhiav cov lus teb nrog kev siv zog me.

    "Cov no yog ob lub platform uas yuav tsum ua haujlwm seamlessly tab sis tiag tiag yuav luag tsis muaj cov khoom lag luam sib txuas dab tsi nyob sab nraud ob peb thaj teb npaj tau."

    Kuv xav tias koj nkag siab yuam kev tias GTM yog dab tsi. Nws ua haujlwm zoo nrog GA, zoo dua li muaj lwm yam TMS. GTM tsis yog siv rau Google Analytics xwb. Uas tau hais tias, Kuv yuav tsis siv GA siv lwm yam cuab yeej siv.

    GTM's Google Analytics tag yog cov graphical user interface rau kev siv cov code uas ntau tus neeg yuav pom tias nyuaj rau kev tswj hwm.

    Thaum nws los txog rau cov ntsiab lus pab pawg, nws suab ntau yooj yim rau kuv sau rau ib lub thawv me me hauv GTM nrog qhov sib txawv dua li sau

    ga ('teeb', 'contentGroup', ”);

    thiab muaj qhov txiaj ntsig zoo ntawm koj thaj chaw uas muaj ntau yam los ntawm cov neeg rau zaub mov nyob ib sab yog qhov nyuaj los tswj dua li ib txheej txheej.

    "Tsis muaj txhais tau tias kis dhau ib pawg ntawm cov pawg, cov cim npe, lossis cov yam ntxwv rau Google Analytics"

    Thaum koj raug tseeb tias Google Analytics sau cov txiaj ntsig rau Cov Ntsiab Lus Pawg raws li cov hlua, tsis yog kab los yog khoom, qhov ntawd tsuas yog kev siv lo lus technical.

    Koj kiag li tuaj yeem dhau qhov array ntawm pawg lossis cim npe rau GA. Tig koj lub array rau hauv lub qhov txuas delimited thiab koj tau teeb tsa.

    Kev cai javascript kev cai sib txawv yooj yim yuav dhau koj cov kab ua ib txoj hlua.

    ua haujlwm () {
    var pageCategory = {{dl - nplooj - pageCategory}};
    rov qab los pageCategory.join (“|”);
    }

    Saib kab lus no rau cov piv txwv ntawm yuav ua li cas tshawb xyuas cov ntaub ntawv ntawd: http://www.lunametrics.com/blog/2016/05/25/report-items-in-multiple-categories-in-google-analytics/

    Koj puas xav paub qee cov qauv javascript kom siv GTM zoo? Meej lus. Puas yog qhov luv tuaj ntawm cov cuab yeej? Tsis yog. Nws yog TMS. Tau kawg koj yuav tsum paub javascript los siv nws.

    ”Auj… thiab yog tias qhov kev tsim txom tsis txaus, koj tsis tuaj yeem tshem tawm ib pawg ua cov ntsiab lus. Koj muaj peev xwm xiam nws. ”

    INDEED. Muaj tiag yuav tsum toggles kom tshem tawm cov teb ntawm cov ntawv ceeb toom.

    "Cov ntaub ntawv txheej txheej uas lub plugin xa mus rau Google Tag Manager yuav tsum tau sau ua ntej tsab ntawv sau rau Google Tag Manager"

    Qhov no yog qhov teeb meem nrog lub plugin. Tus sau lub plugin yog pib tsim cov txheej txheem txheej tsis raug thiab tsis siv ib qho “xwm txheej” uas yog GTM lub chaw xa npav sab hauv. Tsis txhob rub tawm koj cov plaub hau, txawm hais tias. Tsis tsim nyog nws yog tus nyob.

    Dhia mus rau kauj ruam 5 (lwm yam zoo li ntawm phiaj)

    "Vim tias koj cov pawg ntawm pawg lossis cim npe yuav dhau lub cim txwv teeb tsa ntawm txhua Cov ntsiab lus Pawg tso cai hauv Google Analytics. Google Analytics (tu siab) tsis tuaj yeem lees txais ib qho kev ntsuas. Yog li peb yuav tau ua nws li cas? Ugh… qhov no yog qhov nyuaj siab. ”

    Qhov no tsis yog qhov teeb meem ntawm kev ua cim tus cwj pwm rau GA. Koj tsuas yog yuav tsum tau hloov koj cov array rau ib txoj hlua, uas yog tus nqi uas xav pom hauv GA's API. Tus dimension piav qhia txog yam. Yog li txoj hlua (lo lus) yog qhov kev cia siab.

    "Thaum koj muaj ib qeb teeb tsa rau txhua qeb, koj npaj tau tsim koj daim ntawv cim npe!"

    Noooooo! 🙂 Tsis txhob taug txoj kev ntawd. Siv tus nqi delimited thiab koj txuag koj tus kheej tons mob taub hau.

    "Ntawm no yog lwm yam ruam ... qhov kev txiav txim yuav tsum sib phim qhov kev txiav txim ntawm koj cov Analytics Admin chaw rau cov ntaub ntawv. Lub kaw lus tsis ntse txaus mus sau cov ntsuas kom yog rau tus lej raug ntsuas. "

    Kuv tsis ntseeg tias qhov ntawd yog qhov tseeb. Raws li ntev raws li koj lub cim qhia yog ib tus lej, tus nqi rau qhov ntsuas yuav populate koj lossis nrog tus nqi tseeb.

    Qhov muaj txiaj ntsig zoo takeaway Kuv muaj los ntawm koj tsab xov xwm yog tias koj cov nyeem tau nthuav tawm ib txoj hauv kev tseem ceeb rau "hlais thiab tsuav" cov ntaub ntawv hauv GA. Qhov ntawd yog qhov tseem ceeb loj thiab muaj cov plugins pub dawb rau WordPress uas yuav cia lawv ua li ntawd.

    Hais txog kev tswj hwm lawv cov ntaub ntawv khaws cia nyob rau hauv ntau dua, nws yog qhov haujlwm ntawm NWS los muab cov ntaub ntawv tsim nyog rau kev ua lag luam uas muaj txiaj ntsig kev lag luam. Cov kev nyuaj uas cov cuab yeej zoo li GTM tau qhia rau hauv kev ua lag luam (vim tias nws tau loj hlob zoo) yog tias cov neeg lag luam tsis xav tias lawv yuav tsum cia siab rau IT mus sau cov ntaub ntawv. Lawv ua. Qhov teeb meem hauv taw tes -> GA API yuav tsum muaj txoj hlua rau Cov Kev Cai Cov Ntawv Loj. Yog tias koj tsis hloov ib txoj kab rau hauv txoj hlua, koj yuav xaus tsim cov tsis txaus ntawm cov npe. Tias tsis yog cov tshuaj kua haum, lossis txawm tias xav tau.

    Kuv cia siab tias kuv cov lus tawm tswv yim rau koj tsab xov xwm tau txais zoo. Kuv tsis yog kom pheej troll tau. Theej, Kuv sim ntxiv kuv cov kev paub dhau los nrog cov cuab yeej uas koj tau sib tham txhawm rau txhawm rau nthuav kev sib tham hauv kev tshaj lij thiab kev tsim kho.

    Qhov zoo,

    Yehoshua

    • 2

      Yehoshua, koj tso dag xwb? Yog tsis tau trolling… Qhov ntawd yog kev xav mentsis. Kiag li hlub cov lus tawm tswv yim thiab kev tshaj lij koj tau qhia rau peb cov neeg tuaj saib.

      Nco tseg: Kuv puas tau muaj cov cim ntsuas tau teev rau ntawm cov ntaub ntawv dhau rau Cov Pawg Ntsiab Lus tab sis nws tsis ua haujlwm thaum nws tsis nyob hauv qhov kev txiav txim siab tseeb.

      Tsaug dua!

  2. 3

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.