Lub Vev Xaib Txawb Txawb yog Qhov Yuav Tsum Tau, Tab sis Tsis txhob hnov ​​qab Analytics!

Txawb SEO

Lub hli tas los no Kuv tau ua haujlwm nrog cov neeg lag luam uas pom muaj qhov tsis pom zoo hauv kev tshawb nrhiav organic ntau xyoo dhau los. Peb tau kho qhov teeb meem ntau nrog lub xaib uas tuaj yeem cuam tshuam rau qeb duas; txawm li cas los xij, kuv xiam ib qho tseem ceeb hauv kev txheeb xyuas lawv cov kev tshuaj ntsuam - Cov Ntawv Txheeb Xoom Qav Txawb (AMP).

AMP yog dab tsi?

Nrog cov vev xaib tseem ceeb dhau los ua qhov kev hloov, qhov loj thiab ceev ntawm cov chaw txawb tau cuam tshuam zoo heev, feem ntau ua rau qeeb ntawm cov xaib thiab muab cov neeg siv kev paub uas tsis yog yam tsis zoo. Google tsim AMP txhawm rau txhim kho qhov no, txo khub ua ke ntawm nplooj ntawv kom muaj qhov zoo sib xws thiab mloog tus mob thiab tsis tshua pom loj dua; yog li ntawd, muab cov kev paub zoo ib yam rau cov neeg siv thiab ua rau sab nrawm nrawm rau cov neeg siv lub tshuab tshawb nrhiav organic. Nws yog hom uas sib tw nrog Facebook Cov Lus Tseem Ceeb thiab Kua News.

Cov chaw nrog AMP teeb tsa tau pom peb mus rau tsib zaug qhov teeb meem organic lawv tau pom yam tsis muaj hom ntawv, yog li kuv pom zoo kom koj los sib sau AMP tam sim. Qee tus neeg tau yws tias AMP cov vev xaib raug tso tawm ntawm Google lub URL ntawm lub xov tooj ntawm tes, qee yam uas tuaj yeem cuam tshuam tsis zoo rau kev sib txuas thiab sib qhia. Google tau teb los ntawm muab qhov txuas ncaj qha rau cov ntawv sau ib yam nkaus. Kuv ncaj ncees ntseeg tias cov txiaj ntsig tau deb dhau ntawm qhov txaus ntshai.

Yog tias koj tau siv WordPress, Automattic tau tso ib qho ruaj khov WordPress AMP plugin uas tawm lub tawm tswv yim uas tsim nyog thiab siv txoj kev tsim nyog permalink. Ua piv txwv, koj yuav pom tias tsab xov xwm no yog:

https://martech.zone/accelerated-mobile-pages/

Thiab AMP version ntawm tsab xov xwm muaj nyob ntawm:

https://martech.zone/accelerated-mobile-pages/amp/

Kuv tau siv AMP sai sai rau ntawm kuv lub xaib thiab ntau ntawm kuv cov neeg siv khoom, tab sis tsis saib xyuas kom pom ib qhov teeb meem tseem ceeb. Lub AMP plugin tsis txhawb nqa kev koom ua ke ntawm pawg thib peb zoo li Google Analytics. Yog li, zoo ib yam li kuv cov neeg siv khoom, peb tau txais me ntsis ntawm kev lag luam organic mus rau peb cov nplooj ntawv AMP tab sis tsis pom ib qho ntawm cov ntawd hauv Google Analytics. Tus poob peb tau pom tsis yog qhov kev poob txhua, nws tsuas yog Google indexing thiab tso tawm peb cov AMP nplooj ntawv xwb. Txaus ntshai kawg!

Yuav ua li cas thiaj siv Google Analytics nrog WordPress AMP

Qhov nyuaj txhais tau tias kev nqis tes ua Google Analytics nrog AMP yog ntxiv cov lej cim hauv koj cov ntsiab lus functions.php file uas sau lub JavaScript tsim nyog rau hauv koj lub header thiab hu rau Google Analytics hauv lub cev ntawm koj nplooj ntawv AMP. Koj tsab ntawv sau:

add_action ('amp_post_template_header', 'amp_custom_header'); kev ua amp_custom_header ($ amp_template) {?>

Tom qab ntawd koj daim ntawv sau lub cev rau kev ntxiv rau koj hu mus rau Google Analytics (nco ntsoov hloov UA-XXXXX-Y nrog koj tus lej teev cov khoom siv xav tshuaj:

add_action ('amp_post_template_footer', 'amp_custom_footer'); kev ua amp_custom_footer ($ amp_template) {?>
{
"vars": {
"account": "UA-XXXXX-Y"
},
"triggers": {
"trackPageview": {
"on": "visible",
"request": "pageview"
}
}
}

Yuav ua li cas yooj yim siv Google Analytics nrog WordPress AMP

Txoj kev yooj yim los siv Google Analytics nrog WordPress AMP yog kev siv peb qhov txuas ntxiv mus no:

  1. WordPress AMP
  2. Yoast SEO
  3. Cov kua nplaum rau Yoast SEO & AMP

Cov nplaum lo rau Yoast SEO & AMP plugin cia koj ob qho kev hloov kho qhov zoo thiab qhov kev xav ntawm koj cov AMP tso zis ntxiv rau ntxiv cov Analytics code snippet (saum toj no rau lub cev) ncaj qha rau hauv lub chaw teeb tsa.

Kua nplaum Yoast SEO AMP Analytics

Yuav Kuaj Koj Li Cas AMP Nplooj

Thaum koj tau ua tiav AMP, nco ntsoov siv Google Qhov Kev Ntsuas AMP kom ntseeg tau tias koj tsis muaj teeb meem hom ntawv twg.

Ntsuam xyuas kuv nplooj ntawv AMP

Koj qhov kev ntsuas yuav tsum yog:

Siv tau AMP Nplooj Ntawv

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.