Masamba Oyenda Mofulumira Ndiyofunika, Koma Musaiwale Kusanthula!

SEO yam'manja

Mwezi wathawu ndakhala ndikugwira ntchito ndi kasitomala yemwe wawona kuchepa kowonekera kwamagalimoto osaka chaka chatha. Takonza zovuta zingapo patsamba lino zomwe zingakhudze masanjidwe; komabe, ndimasowa chinthu chimodzi chofunikira pakuwunika ma analytics awo - Masamba Oyenda Mofulumira (AMP).

Kodi AMP ndi chiyani?

Ndi masamba omvera akukhala ofala, kukula ndi kuthamanga kwamawebusayiti kumakhudzidwa kwambiri, nthawi zambiri kumachedwetsa malowa ndikupereka zokumana nazo za ogwiritsa ntchito zomwe sizofanana. Google idayamba amp kukonza izi, kuphatikiza kwambiri masambawo kuti akhale ndi mawonekedwe ofanana ndikumverera kocheperako; chifukwa chake, kupereka chidziwitso chofananira cha ogwiritsa ntchito komanso kuthamanga kwakanthawi kwamasamba kwa ogwiritsa ntchito makina osakira. Ndi mtundu womwe umapikisana nawo Facebook Instant Articles ndi Apple News.

Masamba omwe ali ndi AMP omwe akonzedwa akuwona katatu kapena kasanu kuchuluka kwamagalimoto anali akuwona popanda mawonekedwe, chifukwa chake ndidalimbikitsa kuti muphatikize AMP nthawi yomweyo. Anthu ena anali kudandaula kuti masamba a AMP amawonetsedwa kudzera pa ulalo wa Google pafoni, zomwe zingasokoneze kulumikizana ndi kugawana nawo. Google yayankha mwa kupereka ulalo wachindunji ndi nkhaniyi. Ndikukhulupirira moona kuti maubwino amapitilira zoopsa zake.

Ngati mukugwiritsa ntchito WordPress, Automattic idatulutsa cholimba kwambiri Pulogalamu ya WordPress AMP yomwe imatulutsa mtundu woyenera ndikugwiritsa ntchito njira yovomerezeka ya permalink. Mwachitsanzo, muwona kuti nkhaniyi ili pa:

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

Ndipo mtundu wa AMP wa nkhaniyi ukupezeka pa:

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

Ndidakhazikitsa AMP mwachangu patsamba langa komanso makasitomala anga ambiri, koma ndidanyalanyaza kuzindikira vuto limodzi. Pulogalamu ya AMP sinagwirizane Kuphatikiza kwa gulu lachitatu monga Google Analytics. Chifukwa chake, monga kasitomala wanga, timapeza magalimoto ambiri opita kuma masamba athu a AMP koma osawona magalimoto aliwonse mu Google Analytics. Pulogalamu ya kuchepa tinali kuwona kuti sikunali kutsika konse, kunali kungolemba kwa Google ndikuwonetsa masamba athu a AMP m'malo mwake. Zokhumudwitsa kwambiri!

Momwe mungagwiritsire ntchito Google Analytics pamanja ndi WordPress AMP

Njira zovuta kukhazikitsa Google Analytics ndi AMP ndikuwonjezera nambala mu fayilo yamutu wa function.php yomwe imayika JavaScript yofunikira pamutu panu ndikuyitanitsa ku Google Analytics m'thupi la tsamba lanu la AMP. Zolemba pamutu wanu:

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

Kenako thupi lanu kuti muwonjezere kuyimba kwanu ku Google Analytics (onetsetsani kuti mwasintha UA-XXXXX-Y ndi chizindikiritso cha akaunti yanu ya analytics:

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

Momwe mungagwiritsire ntchito Google Analytics mosavuta ndi WordPress AMP

Njira yosavuta yogwiritsira ntchito Google Analytics ndi WordPress AMP ndiyo kugwiritsa ntchito mapulagini atatu otsatirawa:

  1. WordPress AMP
  2. Yoast SEO
  3. Guluu wa Yoast SEO & amp

Guluu wa Yoast SEO & AMP plugin tiyeni tonse musinthe mawonekedwe ndi mawonekedwe a AMP yanu ndikuwonjezera kachidindo ka Analytics (pamwambapa thupi) molunjika pamakonzedwe a pulojekiti.

Kumata Yoast SEO AMP Analytics

Momwe Mungayesere Tsamba Lanu la AMP

Mukamaliza kugwiritsa ntchito AMP, onetsetsani kuti mukugwiritsa ntchito Google AMP Test kuti muwonetsetse kuti mulibe mtundu uliwonse wamtundu.

Yesani tsamba langa la AMP

Zotsatira zanu zoyesedwa ziyenera kukhala:

Tsamba Lovomerezeka la AMP

Mukuganiza chiyani?

Tsambali likugwiritsa ntchito Akismet kuchepetsa spam. Phunzirani momwe deta yanu ikufotokozera.