Rich Results Test - Search Console Help

文章推薦指數: 80 %
投票人數:10人

You can test an arbitrary code snippet using this tool. In the tool landing page, choose Code instead of URL for the test, then paste the code to be tested. You ... SkiptomaincontentRichResultsTestPutstructureddataonyourpagetoenablespecialfeaturesinGoogleSearchresults,thentestitwiththeRichResultstest. OPENTHERICHRESULTSTEST   Runthetest ForaURL SubmitthefullURLofthepagetotest.Important:Allpageresourcesmustbeaccessiblebyananonymoususeraccessingthecodefromtheinternet.Anyresourcesthatarebehindafirewall orpassword-protectedwillnotbeavailabletothetest.Ifyourpageisbehindafirewallorhostedonyourlocalmachine,youcantestitbyexposingatunnel. Foracodesnippet Youcantestanarbitrarycodesnippetusingthis tool.Inthetoollandingpage,choose Code insteadofURLforthetest,thenpastethecodetobetested.Youcanmodifythecodeandrerunthetestbyclicking Runtest asoftenasyoulike. Optionallychooseauseragent Youcanchoosewhichuseragenttousewhentestingyourpage:thatis,test yourpagewithasmartphoneoradesktopcomputer.ChooseauseragentfromthelistbelowtheURLorcodeentrytextbox. Thedefaultuseragentissmartphone,becauseofGoogle'smobile-firstinitiative,whichreflectstheincreaseduseofmobiledevicestoaccesswebpages.Ifyoursiteismobile-first,werecommendusingthesmartphoneuseragentforyourtesting,unlessyouhavespecificreasonstousethedesktopuseragent.Forallsites,werecommendusingthemobileuseragentbecausethisishowthemajorityofusersbrowsethewebtoday. Youcanseeifyoursiteismobile-firstonyourproperty'ssettingspage. Supportedstructureddataformats TheRichResultstestsupportsstructureddatain JSON-LD,RDFa,andMicrodata Commentsupportincodeblocks TheRichResultstesttool ignorescommentswithinJSON-LDblocks.However,thatbehaviorisnotsupportedbytheJSON-LDstandardandsomightresultinerrorsinactualusage.BesuretoremoveanycommentsfromJSON-LDbeforepublishingyourfinalpage. Reviewtheresults Thetestshowswhichrichresulttypeswerefoundonthepage,aswellasanyerrorsorsuggestionsforyourstructureddata. Ifthereareerrorsorwarnings,expandtheindividualitemtoseedetails,andclickthedescriptiontoopenthecodeexplorerinthecorrespondinglocation.Theexplorerusestherenderedsourcecode. Thetestresultscoverthefollowingareas: URLstatus ThetoolcanreportanythefollowingstatusvaluesforatestedURLwhere N dependsonthenumberofitemsfound. Nvaliditem(s)detected Noitemsdetected Nvaliditem(s)withwarningsdetected N validitemsdetected:Allhavewarnings N validitemsdetected:Somehavewarnings Nitemsdetected:Someareinvalid Ninvaliditem(s)detected URLcannotbecrawled Structureddatawithsyntaxerrorsdetected Crawling ThissectiondescribeswhetherGoogleispermittedtocrawlthepage.IfGoogleispreventedfromcrawlingthepageaspartofitsregularcrawlcycle(forexample,ispreventedfromcrawlingbyarobots.txtruleornoindexdirective),thepagecannotbetestedwiththistool. Crawledsuccessfully/Crawlfailed:  Crawledas:Showsthetypeofuseragentusedforthecrawl(smartphoneordesktop) Crawlallowed? Testswhetherarobots.txtruleonthesitepreventsthispagefrombeingcrawled. Pagefetch:Whetherthepagecouldbefetchedbythetest.Ifcrawlingfailed,thiswillalwaysfail. DetectedItems/Detectedstructureddata Whetheranystructureddataitemswerefoundonthepage.Ifstructureddatawasfoundbutcouldnotbeparsed,thatwillbeindicatedhere.Anyitemsfound,whethergood,withwarningsorerrors,orunparseable,willbelistedhere,alongwithadescriptionoftheitemandanyissues.   Pagecan'tbereached Ifforsomereasonthetoolcannotaccessthepage,itwilldisplayanerrordescribingtheproblem.Accessproblemsincludenetworkconnectivityissuesorthesitebeingdown. Thistoolaccessesthepageas Googlebot (thatis,notusingyourcredentials,butasGoogle).Thismeansthatitcanbeblockedbyarobots.txtfile. Pagehasunloadableresources Ifatestcannotloadcertainresourcesusedbyapage,youwillgetawarning.Resourcesareexternalelementsincludedbythepage,suchJavaScriptfiles.TheRichResultstesttriestoloadonlycertaintypesofresources;othersthatwon'taffectthetestareignored. Herearesomecommonreasonsforresourceloadingissues: Theresourcewasn'tloadableinareasonableamountoftime.Inthiscase,tryrunningthetestagain.Ifitcontinuestohappen,considerhostingtheresourcesomewhereelse,orelsetrytodiscoverandfixthereasonforlackofresponsefromthehost. TheresourcedoesnotexistattheURLreferenced(404error).FixtheresourceURL. Theresourceisinaccessibletonon-logged-inusers.Thetestaccessesthepageasananonymoususer;ensurethatallresourcesareaccessibletoanonymoususers. TheresourceisblockedtoGooglebotbyarobots.txtfile.Iftheresourceisimportant(seebelow),ifitisonyourownsite,youmightwanttounblocktheresourcetoGooglebot;ifitisonanothersite,youmightwanttocontactthesite'swebmasterandasktohaveitunblocked. Unblockingimportantresources Ifablockedresourceisimportant,itcouldhaveabig effectonhowGoogleunderstandsthepage.Forexample,aJavaScriptthathandlespageDOMgenerationwouldcauseproblemsifitwerenotreachable.MakesurethatimportantresourcesarenotblockedtoGooglebotbyrobots.txtandaregenerallyaccessible. Inconsistent testresults Ifyouhaveunloadableresourcesorotherpageloadingissues,youmightseeslightlydifferentresultseverytimeyourunthetest.Thisisbecausethesetofresourcesthatwereloadedcanvaryduringeachtestrun.Ifyourpagerenderingchangeseachtimeyourunthetest,andyouhavenotchangedanything,checkfora"pageloadingissues"warning;ifpresent,clickformoreinformationtoseewhatmighthavehappenedtopreventthepagefrombeingrenderedconsistentlyandcorrectly. Syntaxerrorsinitemsofunknowntype Certainerrorscanhalttheparserbeforeitcanevendetermine therichresulttype.Ifyouhavesuchanerror, youwillgetasectionlabeled"Syntaxerrorsinitemsofunknowntype".Herearetheerrorsthatcancausethiscondition: Errortype Description InvalidJSONdocument TheJSONhadatop-levelsyntaxerror. Incorrectvaluetype Thevaluespecifiedforapropertywasofthewrongtype.Forexample,youspecifiedastringwhenanumberorarraywasexpected. Parsingerror:Missing':' Missinga':'mark. Parsingerror:Missing','or'}' Missinga','orclosingbracket. Parsingerror:Missing'}'orobjectmembername   Missingaclosingbracketorobjectmembername. Parsingerror:Missing','or']'inarraydeclaration Errorparsinganarrayvalue:missinga','or']'inthearraydeclaration. Unabletoparsetokenlength Forsomereason,thestartandendofapropertyorvaluecouldnotbefound. Invalidnumber Propertyvalueexpectedtobeanumber,butanothervaluetypewasused. Emptyescapesequenceinstring Astringvalueincludeanemptyescapesequencecharacter:forexample: "description":"Callme\John" ratherthan "description":"Callme \"John\"". Badescapesequenceinstring Aninvalidescapesequenceusedinastringvalue.Forexample: "description":"Some\qunknownsequence" TruncatedUnicodecharacter Missingthelast6charactersinaUnicodesurrogatepair. InvalidUnicodecharacter Missinga\utokenatthestartofthesecondhalfofaUnicodesurrogatepair. InvalidUnicodeescapesequence:fourdigitsexpected AUnicodeescapesequencehasasyntaxerror:itshouldcontainfourdigits. InvalidUnicodeescapesequence:hexadecimaldigitexpected AUnicodeescapesequencehasasyntaxerror:ahexadecimaldigitwasexpectedbutnotprovided. Duplicateuniqueproperty Youprovidedtwodefinitionsforauniquepropertyinyourstructureddataobject.Forexample,two@contextvalues. Invalidtoplevelelement Atop-leveliteminyourJSON-LDisinvalid. Referencetononexistentitem Anitemrefattributepointstoanon-existentidentifier. Supportedrichresulttypes Thistestcurrentlysupportsthefollowingrichresulttypes: Supportedtypes AMParticle Article Breadcrumb Carousel Course CriticReview Dataset EducationQ&A Employerrating Estimatedsalary Event FAQ Factcheck Guidedrecipe How-to ImageLicense Jobposting Jobtraining Localbusiness Logo Movie Product Q&Apage Recipe Reviewsnippet Sitelinkssearchbox Softwareapp SpecialAnnouncement Video Savetesthistory SearchConsolesavesyourcodeandteststateeachtimeyourunthetest.Tosaveaversion historyofyourcodeandtests,bookmarkthepageURLafterrunningatest.Testhistoryissavedforapproximately90days.Thesebookmarksareaccessiblebyanyone. Sharetestresults YoucanusetheSharebuttontosharethetestresultsbrowserlinkwithanyone;permissionsarenotrequiredtoviewtheresults.Testresultlinksarevalidforapproximately90days. SeehowyourpagemightlookinGoogleSearchresults Forsomerichresulttypesyoucanpreviewhowtheresultmightappear inGoogleSearchorGoogleAssistant.IfyourpageiseligibleformultipleSearchresultlayouts,thistoolwillincludeselectorstoletyouviewthedifferentlayouts,includinglayoutsfordesktopandmobilesearches. Youcanexperimentwithyourpagebychangingthecodeandrerunningthetesttogeneratenewlayouts.YoucansharetheURLinyourbrowserwithotheruserstoshare yourrenderedresults. Dependingonwhatthetoolfindsonthepage,youcanchoosearesulttypetoviewandselectadesktopormobileversion. Googledoesnotguaranteethatyourpagewillappearexactlyasshownhere,orthatanyoftheviewsshownwillbeappliedtoyourpageresult;Googletriestoshowthebestresultforasearchrequest,basedontheuser'ssearchhistory,location,andmanyothervariables. Morestructureddataresources HerearesomemoreresourcesaboutstructureddataandGoogleSearchresultfeatures: Structureddatagallery showsthesearchresultfeatures supportedbyGoogleSearch. Overviewofstructureddata onGoogleforwebpagedeveloperstoenablethesefeatures. Wasthishelpful?Howcanweimproveit?YesNoSubmittrueRichResultsToolsandReportsRichresultstatusreportsRichResultsTestToolsforaddingstructureddata(forbeginners)UnparsablestructureddatareportNewtoSearchConsole?NeverusedSearchConsolebefore?Starthere,whetheryou'reacompletebeginner,anSEOexpert,orawebsitedeveloper.SearchClearsearchClosesearchGoogleappsMainmenuSearchHelpCentertrue83844false



請為這篇文章評分?