Saurin Shafukan Wayar Wajibi ne Na Dole, Amma Kar Ku Manta Da Nazari!

Wayar SEO

A wannan watan da ya gabata na kasance ina aiki tare da wani abokin harka wanda ya ga raguwar zirga-zirgar binciken kwayoyin a shekarar da ta gabata. Mun gyara wasu 'yan matsaloli tare da rukunin yanar gizon da zai iya yin tasiri a kan martaba; Koyaya, na rasa maɓalli ɗaya mai mahimmanci akan nazarin nazarin su - Saurin Shafukan Waya (AMP).

Menene AMP?

Tare da gidajen yanar sadarwar da suka dace sun zama al'ada, girman da saurin shafukan yanar gizo suna tasiri sosai, sau da yawa yana jinkirta shafuka da samar da abubuwan masarufi waɗanda basu dace ba. Google ya haɓaka HAU don gyara wannan, haɗakar da shafuka masu mahimmanci don samun kamanni da ji da ƙananan ƙima; sabili da haka, samar da irin wannan ƙwarewar mai amfani da ingantaccen saurin shafi don masu amfani da injin injunan bincike. Tsari ne wanda yake takara dashi Labaran Facebook Instant da kuma apple News.

Shafuka tare da AMP da aka saita suna gani sau uku zuwa biyar na jigilar kwayoyin suna gani ba tare da tsari ba, don haka na shawarce ku sosai ku haɗa AMP kai tsaye. Wasu mutane suna gunaguni cewa ana nuna shafukan AMP ta URL na Google akan na'urar hannu, wani abu da zai iya shafar haɗi da rabawa. Google ya amsa ta hanyar bayar da hanyar kai tsaye ga labarin kuma. Gaskiya na yi amannar fa'idodi sun fi haɗarin haɗari.

Idan kuna amfani da WordPress, Automattic ya fitar da ƙarfi sosai WordPress AMP plugin wanda ke fitar da tsarin da ya dace kuma yana amfani da hanyar permalink da ake buƙata. A matsayin misali, zaku ga cewa wannan labarin yana:

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

Kuma ana samun samfurin AMP na labarin a:

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

Na aiwatar da AMP da sauri akan rukunin yanar gizo da kuma abokan cinikina da yawa, amma nayi watsi da lura da wani mahimmin batu. Kayan aikin AMP bai goyi bayan ba ɓangare na uku Nazarin haɗin kai kamar Google Analytics. Don haka, kamar abokin cinikina, muna samun ɗan zirga-zirgar ababen hawa zuwa shafukanmu na AMP amma ba mu ga kowane irin wannan zirga-zirga a cikin Google Analytics ba. Da ƙi muna gani ba raguwa bane kwata-kwata, kawai nunawa ne na Google da kuma nuna shafukan AMP dinmu a maimakon haka. Takaici!

Yadda ake aiwatar da Google Analytics da hannu tare da WordPress AMP

Hanyar wahalar aiwatarwa Google Analytics tare da AMP shine ƙara lambar a cikin fayil ɗin function.php ɗin jigon ku wanda ke saka JavaScript mai buƙata a cikin taken ku da kira zuwa ga Google Analytics a jikin shafin ku na AMP. Rubutun rubutunku:

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

Sannan rubutun jikinka don ƙara kiranka zuwa Google Analytics (tabbatar tabbatar maye gurbin UA-XXXXX-Y tare da mai gano asusunka na nazari:

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

Yadda ake aiwatar da Google Analytics cikin sauki tare da WordPress AMP

Hanya mafi sauki don aiwatar da Google Analytics tare da WordPress AMP shine amfani da wadannan abubuwan plugins guda uku:

  1. AMP na WordPress
  2. Yoast WANNAN
  3. Manne don Yoast SEO & AMP

Manne don Yoast SEO & AMP plugin bari ku duka ku canza fasali da jin aikin AMP ɗinku tare da ƙara maɓallin lambar Nazarin (sama don jiki) kai tsaye cikin saitunan plugin.

Manna Yoast SEO AMP Nazarin

Yadda zaka Gwada Shafin AMP naka

Da zarar kun aiwatar da AMP sosai, ku tabbata kuna amfani da Gwajin AMP na Google don tabbatar baku da wata matsala.

Gwada shafin AMP na

Sakamakon gwajinku ya zama:

Ingantaccen AMP Page

Me kuke tunani?

Wannan shafin yana amfani da Akismet don rage spam. Koyi yadda aka sarrafa bayanan bayaninka.