æ¬æ¥ã翻蚳ã®ç¬¬2éšã§ã¯ãTomasz RudskyãJavaScriptããŒã¹ã®ãµã€ãããããããæãäžè¬çãªSEOãšã©ãŒã«ã€ããŠèª¬æããGoogleã®ä»åŸã®AJAXã¯ããŒã«ã®åœ±é¿ã«ã€ããŠè°è«ããäºåã¬ã³ããªã³ã°ãšå圢JavaScriptã«ã€ããŠè©±ããã€ã³ããã¯ã¹äœæå®éšã®çµæãå ±æããŸãã ããã§ãããã«ã圌ã¯ããŸããŸãªã¿ã€ãã®ãµã€ãã®ã©ã³ãã³ã°æ©èœã®ãããã¯ã«è§ŠããGoogle以å€ã«ãJSããŒã¹ã®WebããŒãžãåŠçããå¿ èŠãããä»ã®æ€çŽ¢ãšã³ãžã³ãããããšãæãåºããŠãã ããã
ããŒãžã®æ£åžžãªåœ¢æã«å¿ èŠãªãªãœãŒã¹ã«ã€ããŠ
ããªãã®æèŠã§ã¯ãGooglebotãç¹å®ã®ããŒãžãåŠçã§ãããããã®ããŒãžãæ¬æ¥ã®ããã«ã€ã³ããã¯ã¹ãããŠããªãããšãå€æããå ŽåãããŒãžã圢æããããã«å¿ èŠãªå€éšããã³å éšãªãœãŒã¹ïŒJSã©ã€ãã©ãªãªã©ïŒãå©çšå¯èœã§ããããšã確èªããŠãã ããæ€çŽ¢ããããã 圌ãäœããããŒãã§ãããããŒãžãæ£ããåäœæã§ããªãå Žåã¯ãã€ã³ããã¯ã¹ãäœæããããšãã§ããŸããã
Google Search Consoleã®äžå®æã®äœ¿çšã«ã€ããŠ
以åã«å®å®ããŠç¢ºå®ã«æ©èœããŠãããµã€ãã®è©äŸ¡ãæ¥æ¿ã«äœäžããå ŽåãGoogleããµã€ããé©åã«åŠçã§ãããã©ããã確èªããããã«ãåè¿°ã®Fetch and RenderããŒã«ã䜿çšããããšããå§ãããŸãã
äžè¬ã«ãæ€çŽ¢ãšã³ãžã³ã«ããé©åãªåŠçã®å¯èœæ§ã確èªããããã«ããµã€ãããŒãžã®ä»»æã®ã»ããã§Fetch and Renderã䜿çšãããšäŸ¿å©ãªå ŽåããããŸãã
Robots.txtã«ãã£ãŠãããã¯ããããªãœãŒã¹ã®ãªã¹ã
å±éºãªã€ãã³ãonClick
Googlebotã¯å®éã®ãŠãŒã¶ãŒã§ã¯ãªãããšãå¿ããªãã§ãã ããããªã³ã¯ããã¿ã³ããã¯ãªãã¯ããããããã©ãŒã ã«èšå ¥ãããããªãããšã¯åœç¶ãšèããŠãã ããã ãã®äºå®ã¯å€ãã®å®éçãªçµæããããããŸãïŒ
- ãªã³ã©ã€ã³ã¹ãã¢ããããäžéšã®ããã¹ããã詳现...ããªã©ã®ãã¿ã³ã®äžã«é ããŠããŠãã察å¿ãããã¿ã³ãã¯ãªãã¯ãããŸã§DOMã«ååšããªãå ŽåãGoogleã¯ãããã®ããã¹ããèªã¿ãŸããã ã¡ãã¥ãŒã«åãããã«è¡šç€ºããããªã³ã¯ã«ãåãããšãåœãŠã¯ãŸããŸãã
- ãã¹ãŠã®ãªã³ã¯ã«ã¯
href
ãã©ã¡ãŒã¿ãŒãå«ãŸããŠããå¿ èŠããããŸããonClick
ã€ãã³ãã®ã¿ã«äŸåããŠããå ŽåãGoogleã¯ãã®ãããªãªã³ã¯ãåãå ¥ããŸããã
ããã¯ãžã§ã³ãã¥ã©ãŒã«ãã£ãŠç¢ºèªãããŠããŸãã
äžèšã確èªãããžã§ã³ã»ãã¥ã©ãŒã®ã³ã¡ã³ã
ãµã€ã調æ»ã«Chrome 41ã䜿çšããããšã«é¢ãã以åã®èšäºã® 1ã€ã«ãGoogleã®ã€ã³ããã¯ã¹ã·ã¹ãã ã®å¯çšæ§ã«ã€ããŠã¡ãã¥ãŒã確èªããããã»ã¹ã瀺ãçãã¬ã€ãããããŸãã ãã®è³æãããç解ããããšããå§ãããŸãã
ãªã³ã¯ã§ïŒã¢ã€ã³ã³ã䜿çšãã
JSãã¬ãŒã ã¯ãŒã¯ã
#
èšå·ã䜿çšããŠURLãäœæããããšã¯ä»ã§ãäžè¬çãªç¿æ £ã§ãã Googlebotããã®ãããªãªã³ã¯ãåŠçããªããšããæ¬åœã®å±éºããããŸãã
以äžã«äŸã瀺ããŸãã
- äžæ£ãªURLïŒexample.com/#/crisis-center/
- äžæ£ãªURLïŒexample.comïŒURL
- é©åãªURLïŒexample.com/crisis-center/
ããã¯ã
#!
æåã·ãŒã±ã³ã¹ã®URLã«ã¯é©çšãããªãããšã«æ³šæããŠãã ãã
#!
ïŒããããhashbangïŒã
ãããããããã¯ãã¹ãŠéèŠã§ã¯ãªããšå€æããã§ãããã 確ãã«-倧ããããš-ã¢ãã¬ã¹ã«1ã€ã ãäœåãªæåã ãã ããããã¯éåžžã«éèŠã§ãã
ãžã§ã³ã»ãã¥ã©ãŒãããäžåºŠåŒçšããŸãã
ãïŒ...ïŒç§ãã¡ã®èŠ³ç¹ãããããã§ïŒèšå·ã®ãããªãã®ãèŠãããå Žåãããã¯ãã®åŸã«ç¶ããã®ãéèŠã§ãªãããšãæå³ããŸãã ã»ãšãã©ã®å Žåãã³ã³ãã³ãã®ã€ã³ããã¯ã¹ãäœæãããšãããã®ãããªããšã¯ç¡èŠããŸãïŒ...ïŒã ãã®ã³ã³ãã³ããå®éã«æ€çŽ¢ã«è¡šç€ºããå¿ èŠãããå Žåãããéçã«èŠãããªã³ã¯ã䜿çšããããšãéèŠã§ããã
ãã®çµæãWebéçºè ã¯ãªã³ã¯ã
example.com/resource#dsfsd
ãããªãã®ã«èŠããªãããã«ããå¿ èŠããããšèšã
example.com/resource#dsfsd
ã ãã®ãããªãªã³ã¯ã圢æãããã¬ãŒã ã¯ãŒã¯ã䜿çšããå Žåããããã®ããã¥ã¡ã³ããåç §ããå¿ èŠããããŸãã ããšãã°ãAngular 1ã¯ããã©ã«ãã§
#
èšå·ã䜿çšããã¢ãã¬ã¹ã䜿çšããŸãã ãããä¿®æ£ããã«ã¯ã
$locationProvider
é©å®èšå®ããŸã ã ãã ããããšãã°ãAngular 2ã§ã¯ãè¿œå èšå®ãªãã§ãGooglebotãããç解ããŠãããªã³ã¯ã䜿çšããŸãã
é ãã¹ã¯ãªãããšé ãAPIã«ã€ããŠ
JavaScriptããŒã¹ã®ãµã€ãã®å€ãã¯ãGoogleãã¹ã¯ãªããã®åäœãåŸ ã€æéãé·ãããããïŒããŒãã解æãå®è¡ãåŸ ã€ããšãæå³ããïŒãã€ã³ããã¯ã¹äœæã®åé¡ãçºçããŸãã ã¹ã¯ãªãããé ããšãGooglebotããµã€ããã¯ããŒã«ããããã®äºç®ãããã«äœ¿ãæãããŠããŸãå¯èœæ§ããããŸãã ã¹ã¯ãªãããé«éåãããšãGoogleãã¹ã¯ãªãããããŠã³ããŒãããã®ã«ããã»ã©é·ãåŸ ã€å¿ èŠããªããªããŸãã ããã«ã€ããŠãã£ãšç¥ããã人ã®ããã«ãããŒãžã¬ã³ããªã³ã°ããã»ã¹ã®æé©åã«é¢ãããã®è³æãããç解ããããšããå§ãããŸãã
JavaScriptã«åºã¥ããµã€ãã®æ©èœãèæ ®ãããäžååãªæ€çŽ¢ãšã³ãžã³æé©åãšSEO
ããã§ã¯ãæé«ã®æ€çŽ¢ãšã³ãžã³æé©åãµã€ãã«ã圱é¿ãäžããå¯èœæ§ã®ããåé¡ãæèµ·ããããšèããŠããŸãã
SEOããã³JSæ©èœã䜿çšããSEOãžã®åŸæ¥ã®ã¢ãããŒã
JavaScriptæ©èœã«åºã¥ãSEOã¯ãåŸæ¥ã®æ€çŽ¢ãšã³ãžã³æé©åã«åºã¥ããŠããããšãèŠããŠããããšãéèŠã§ãã èšèã®éåžžã®æå³ã§é©åãªæé©åãéæããªããšãJSã®æ©èœãèæ ®ããŠãµã€ããæé©åããããšã¯äžå¯èœã§ãã SEOã®åé¡ã«ééãããšããJSã«é¢é£ããŠãããšæåã«æãããããããŸããããå®éã«ã¯ãåé¡ã¯åŸæ¥ã®æ€çŽ¢ãšã³ãžã³æé©åã«ãããŸãã
Justin Briggsãèšäºã JavaScriptã®SEOã®ã³ã¢åå ãã®ãJavaScriptã®å¶éãšSEOã®æ··åãã®ã»ã¯ã·ã§ã³ã§æ¢ã«å®å šã«èª¬æããŠããããããã®ãããªç¶æ³ã®è©³çŽ°ã¯èª¬æããŸããã ãã®äŸ¿å©ãªèšäºãèªãããšããå§ãããŸãã
Googlebotã¯2018幎第2ååæããAJAXã¯ããŒã«ã䜿çšããŸãã
Googleã¯ã2018幎ã®ç¬¬2ååæãããAJAXã¹ãã£ã³ïŒAJAXã¯ããŒã«ã¹ããŒã ïŒã䜿çšããªãããšãçºè¡šããŸããã ããã¯ãGoogleãAjaxïŒéåæJavaScriptïŒã䜿çšãããµã€ãã®ã€ã³ããã¯ã¹äœæãåæ¢ãããšããããšã§ããïŒ ããããããã§ã¯ãããŸããã
GoogleãJSã䜿çšãããµã€ããå¢ããŠãããããã®ãããªãµã€ããé©åã«åŠçã§ããªãããšã«æ°ä»ããåœæãAJAXã¹ãã£ã³ãç»å Žããããšã¯èšåã«å€ããŸãã ãã®åé¡ã解決ããããã«ããŠã§ããã¹ã¿ãŒã¯ãæ€çŽ¢ããããçšã«èšèšããããJSã¹ã¯ãªãããå«ãŸãªãç¹å¥ãªããŒãžã§ã³ã®ããŒãžãäœæããããã«æ±ããããŸããã ãããã®ããŒãžã®ã¢ãã¬ã¹ã«
_=escaped_fragment_=
ãè¿œå ããå¿ èŠããããŸããã
å®éã«ã¯ããŠãŒã¶ãŒã¯
example.com
æ¬æ Œçã§å¿«é©ãªããŒãžã§ã³ã§äœæ¥ããGooglebotã¯
example.com
ãããªãªã³ã¯ã«ã€ãªãããµã€ãã®ããã»ã©ãããã§ã¯ãªãåçç©ã«ã¢ã¯ã»ã¹ã
example.com?_=escaped_fragment_=
ïŒã¡ãªã¿ã«ããŸã éåžžã«äººæ°ããããŸãïŒãããã®æææºåã¢ãããŒãïŒã
ä»çµã¿ã¯æ¬¡ã®ãšããã§ãïŒGoogleããã°ããã®ç»åïŒã
ãŠãŒã¶ãŒçšãšãããçšã®ãµã€ãã®ç°ãªãããŒãžã§ã³
ãã®ã¢ãããŒãã®ãããã§ããŠã§ããã¹ã¿ãŒã¯1ç³ã§2矜ã®é³¥ã殺ãããšãã§ããŸãããäž¡æ¹ã®ãŠãŒã¶ãŒãæºè¶³ããæ€çŽ¢ãããããæºè¶³ããŠããŸãã ãŠãŒã¶ãŒã«ã¯JavaScriptæ©èœãåããããŒãžã§ã³ã®ãµã€ãã衚瀺ãããéåžžã®HTMLãšCSSã®ã¿ãååŸãããããæ€çŽ¢ãšã³ãžã³ã¯ãã®ãµã€ãã®ããŒãžã«æ£ããã€ã³ããã¯ã¹ãä»ããããšãã§ããŸãã
AJAXã¹ãã£ã³ã®åé¡ã«ã€ããŠ
Ajax Crawling Schemeã®åé¡ã¯ããŠãŒã¶ãŒãšæ€çŽ¢ãããããç°ãªãããŒãžã§ã³ã®ãµã€ããååŸãããããã€ã³ããã¯ã¹ãµã€ãã«é¢é£ããåé¡ãåæããããšãéåžžã«é£ããããšã§ãã ããã«ãäžéšã®ãŠã§ããã¹ã¿ãŒã¯ãæ€çŽ¢ããããåãã®ããŒãžã®ããŒãžã§ã³ã®æºåã«åé¡ããããŸããã
Googleãã2018幎ã®ç¬¬2ååæããããŠã§ããã¹ã¿ãŒããŠã§ããµã€ãã®2ã€ã®ç°ãªãããŒãžã§ã³ãäœæããå¿ èŠããªããªã£ããšèšã£ãçç±ã¯æ¬¡ã®ãšããã§ãã
AJAXã¹ãã£ã³ç¡å¹ã¡ãã»ãŒãž
ããã¯Webéçºè ã«ã©ã®ããã«åœ±é¿ããŸããïŒ
- Googleã¯ãç¬èªã®ãªãœãŒã¹ã§ãµã€ãããŒãžãäœæããŸãã ããã¯ãéçºè ãGoogleã«ãã®ãããªæè¡çèœåãããããšã確èªããå¿ èŠãããããšãæå³ããŸãã
- Googlebotã¯
_=escaped_fragment_=
ãå«ããªã³ã¯ãžã®ã¢ã¯ã»ã¹ãåæ¢ããäžè¬ãŠãŒã¶ãŒåãã®åãè³æã®ãªã¯ãšã¹ããéå§ããŸãã
ããã«ãéçºè ã¯ãµã€ããBingããã®ä»ã®æ€çŽ¢ãšã³ãžã³ããã¢ã¯ã»ã¹ã§ããããã«ããæ¹æ³ãèŠã€ããå¿ èŠããããŸããBingããã®ä»ã®æ€çŽ¢ãšã³ãžã³ã¯ãJavaScriptããŒã¹ã®ãµã€ãã®åŠçã«é¢ããŠã¯ãŸã Googleã«é ããŠããŸãã å¯èœãªãœãªã¥ãŒã·ã§ã³ã«ã¯ããµãŒããŒã¬ã³ããªã³ã°ïŒãŠãããŒãµã«JavaScriptïŒããŸãã¯å¥åŠãªããšã«ãBingbotã®å€ãAJAXã¹ãã£ã³ã®ç¶ç¶çãªäœ¿çšããããŸãã ããã«ã€ããŠã¯ä»¥äžã§èª¬æããŸãã
Googleã¯ããŒãžåŠçã«æãé«åºŠãªãã©ãŠã¶ãŒã䜿çšããŸããïŒ
Googleãææ°ã®ãã¯ãããžãŒããµããŒãããããã«ãµã€ãåŠçãµãŒãã¹ãæŽæ°ãããã©ããã¯äžæã§ãã ãããè¡ãããããšãé¡ãã°ããã§ãã
GoogleãJSã«åºã¥ããŠããŒãžãåŠçããããšãæãŸãªã人ããäºåã«æºåãããããŒãžã®ã¿ãå«ãã³ã³ãã³ãã«ã€ããŠã¯ã©ãã§ããããïŒ
ç§ã¯ããã«ã€ããŠå€ãã®ããšãèããã®ã§ãJavaScript SEOãã©ãŒã©ã ã®John Muellerã«
User-Agent
ã䜿çšããŠGooglebotãèŠã€ããŠãäºåã«æºåããããŒãžã§ã³ã®ãµã€ããæäŸã§ãããã©ãããå°ããããšã«ããŸããã
Googlebotå°çšã«æºåããããµã€ãã®ããŒãžã§ã³ã«é¢ãããžã§ã³ãã¥ã©ãŒãžã®è³ªå
圌ã®çãã¯æ¬¡ã®ãšããã§ãã
ãžã§ã³ã»ãã¥ã©ãŒã®çã
ãžã§ã³ã¯ãéçºè ã
User-Agent
ããããŒã確èªããäºåã«æºåããããŒãžã®HTMLã¹ãããã·ã§ãããæäŸããããšã§ãèªåã®ãµã€ããGooglebotãã¯ããŒã«ããããšã確èªã§ããããšã«åæããŸãã ããã«å ããŠãããŒãžã®äºåã¬ã³ããªã³ã°ãæ£ããæ©èœããããšã確èªããããã«ãããŒãžã¹ãããã·ã§ãããå®æçã«ãã§ãã¯ããããšããå§ãããŸãã
Bingãå¿ããªãã§ãã ããïŒ
GooglebotãJSãã¬ãŒã ã¯ãŒã¯ã«åºã¥ããŠãµã€ããçæ³çã«åŠçããããªããããã§åé¡ãæ±ããŠããªãããšãæ³åããŠãã ããã ããã¯ããã®ãããªãµã€ãã®ã€ã³ããã¯ã¹äœæã«é¢é£ãããã¹ãŠã®åé¡ãå¿ããããšãã§ãããšããããšã§ããïŒ æ®å¿µãªãããããã§ã¯ãããŸããã ç±³åœã§ã¯ãã€ã³ã¿ãŒããããŠãŒã¶ãŒã®çŽ3åã®1ã䜿çšããŠããBingæ€çŽ¢ãšã³ãžã³ãæãåºããŠãã ããã
çŸåšãBingãJavaScriptããŸã£ããåŠçããŠããªããšæ³å®ããã®ãè³¢æã§ãïŒé«æ Œä»ãããŒãžã§BingãJSãåŠçããŠãããšããåããããŸããããããã®åã®ç¢ºèªã¯èŠã€ãããŸããã§ããïŒã
èå³æ·±ãç 究ã«ã€ããŠã話ãããŸãããã
Angular.ioã¯ãAngular 2+ã®å ¬åŒWebãµã€ãã§ãã ãã®ãµã€ãã®äžéšã®ããŒãžã¯ãåäžããŒãžã®ã¢ããªã±ãŒã·ã§ã³ãšããŠäœæãããŠããŸãã ã€ãŸããHTMLãœãŒã¹ã³ãŒãã«ã¯ã³ã³ãã³ããå«ãŸããŠããŸããã ãã®ãããªããŒãžãããŒãããåŸãå€éšJSãã¡ã€ã«ãããŒããããããã«ãã£ãŠããŒãžã®ã³ã³ãã³ãã圢æãããŸãã
ãŠã§ããµã€ãAngular.io
Bingã¯ãã®ãµã€ãã®ã³ã³ãã³ããèŠãªãããã§ãïŒ
Bingã¯Angular.ioãµã€ãã®ã³ã³ãã³ãã衚瀺ããŸãã
ãã®ãµã€ãã¯ãBingã®ãAngularãããŒã¯ãŒãã§2çªç®ã«ã©ã³ã¯ãããŠããŸãã
Angular 4ã¯ãšãªã«ã€ããŠã¯ã©ãã§ããã åã³-AngularJS.orgãµã€ãã®äžã®2çªç®ã®äœçœ®ïŒããã¯å ¬åŒã®Angular 1ãµã€ãã§ãïŒã ãAngular 5ãã®ãªã¯ãšã¹ãã§-åã³2çªç®ã®äœçœ®ã
BingãAngular.ioã§åäœã§ããªãããšã蚌æããå¿ èŠãããå Žåã¯ã
site
ã³ãã³ãã䜿çšããŠããã®ãµã€ãããããã¹ãã®äžéšãèŠã€ããŠãã ããã ããªãã¯æåããŸããã
ãã§ãã¯ããããã¹ãã®æçãéžæãã
ãµã€ããæ€çŽ¢ãããšãã«ããã¹ããèŠã€ãããŸããã§ãã
ç§ã«ãšã£ãŠãããã¯å¥åŠã§ãã Angular 2ã®å ¬åŒWebãµã€ãã¯ãBingbotããããã«ãã£ãŠæ£åžžã«ã¯ããŒã«ããã³ã€ã³ããã¯ã¹ç»é²ã§ããªãããšãå€æããŠããŸãã
Yandexã¯ã©ãã§ããïŒ Yandexã§ãAngularããšããåèªãæ€çŽ¢ãããšãAngular.ioã¯äžäœ50ã®çµæã«ããå«ãŸããŸããã
Yandexã®ãŠã§ããµã€ãAngular.io
Twitterã§ãAngular.ioããŒã ã«ç®ãåããBingãªã©ã®æ€çŽ¢ãšã³ãžã³ã§ãµã€ãã®ã€ã³ããã¯ã¹ãäœæã§ããããã«ããäºå®ããããã©ããã«ã€ããŠè³ªåããŸãããããã®è³æãæžããŠããæç¹ã§ã¯ãŸã åçããããŸããã
å®éãåè¿°ã®ããšãããæ°ããWebãã¯ãããžãŒããµã€ãã«å°å ¥ããããã«ãBingããã®ä»ã®æ€çŽ¢ãšã³ãžã³ãå¿ããªãã§ãã ããã ããã§ã¯ãå圢JavaScriptãšäºåã¬ã³ããªã³ã°ã®2ã€ã®ã¢ãããŒãããå§ãããŸãã
äºåã¬ã³ããªã³ã°ãšå圢JavaScript
Googleãã¯ã©ã€ã¢ã³ãã§ã¬ã³ããªã³ã°ãããŠãããµã€ãã®ã€ã³ããã¯ã¹äœæã«åé¡ãããããšã«æ°ä»ããå Žåã¯ãäºåã¬ã³ããªã³ã°ã䜿çšãããããµã€ããå圢JavaScriptã¢ããªã±ãŒã·ã§ã³ã«å€æããããšãæ€èšããŠãã ããã
ã©ã®ã¢ãããŒããè¯ãã§ããïŒ
- äºåã¬ã³ããªã³ã°ã¯ãæ€çŽ¢ãšã³ãžã³ãWebãµã€ãã®ããŒãžãæ£ãã圢æã§ããªãããšã«æ°ã¥ãããã®æäœãèªåã§å®è¡ãããšãã«äœ¿çšãããŸãã ããããããµã€ãã«ã¢ã¯ã»ã¹ãããšããããŒãžã®HTMLã³ããŒãäžããã ãã§ãïŒJSã³ãŒãã¯å«ãŸããŸããïŒã åæã«ããŠãŒã¶ãŒã¯JSæ©èœãåããããŒãžã®ããŒãžã§ã³ãååŸããŸãã ããŒãžã®ã³ããŒã¯ãããã®ã¿ã䜿çšããäžè¬ãŠãŒã¶ãŒã¯äœ¿çšããŸããã ããŒãžãäºåã«ã¬ã³ããªã³ã°ããã«ã¯ãå€éšãµãŒãã¹ïŒprerender.ioãªã©ïŒã䜿çšãããããµãŒããŒäžã®ãŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ãªãã§PhantomJSãChromeãªã©ã®ããŒã«ã䜿çšã§ããŸãã
- ååJavaScriptã人æ°ã®ãããã€ãã³ã°ã§ãã ããã䜿çšãããšãæ€çŽ¢ãšã³ãžã³ãšãŠãŒã¶ãŒã®äž¡æ¹ããæåã«ããŒãžãããŒããããšãã«ãå¿ èŠãªãã¹ãŠã®ããŒã¿ãååŸããŸãã 次ã«ããã®ããªããŒããããããŒã¿ãåŠçããJSã¹ã¯ãªãããããŒããããŸãã ããã¯ãäžè¬ãŠãŒã¶ãŒãšæ€çŽ¢ãšã³ãžã³ã®äž¡æ¹ã«é©ããŠããŸãã ãã®ãªãã·ã§ã³ã®äœ¿çšããå§ãããŸããGoogleã§ããµããŒãããŠããŸãã
Googleã¯å圢JavaScriptãæšå¥šããŠããŸã
ãã ããããã«ã¯1ã€ã®åé¡ããããŸããããã¯ãå€ãã®éçºè ãå圢JavaScriptã¢ããªã±ãŒã·ã§ã³ãæ£ããäœæã§ããªãããšã§ãã
ãµãŒããŒåŽã®ã¬ã³ããªã³ã°ã«èå³ãããå Žåã¯ã䜿çšããŠããJSãã¬ãŒã ã¯ãŒã¯ã®ããã¥ã¡ã³ããåç §ããŠãã ããã ããšãã°ãAngularã®å Žåã Angular Universalãé©çšã§ããŸãã Reactã䜿çšããŠããå Žåã¯ã ããã¥ã¡ã³ããèªã¿ãUdemyã§ãã®ãã¥ãŒããªã¢ã«ãåç §ããŠãã ãã ã
React 16ïŒ11æã«ãªãªãŒã¹ïŒã¯ããµãŒããŒã¬ã³ããªã³ã°æ¥çã«å€ãã®æ¹åããããããŸããã ãããã®æ¹åç¹ã®1ã€ã¯
RenderToNodeStream
é¢æ°ã§ããµãŒããŒã¬ã³ããªã³ã°ããã»ã¹å šäœãç°¡çŽ åããŸãã
ãµãŒããŒã¬ã³ããªã³ã°ã®äžè¬çãªã¢ãããŒãã«ã€ããŠèª¬æããå ŽåãéèŠãªæšå¥šäºé ã1ã€æããŸãã ãµã€ãããµãŒããŒã«ã¬ã³ããªã³ã°ãããå Žåãéçºè ã¯DOMã«çŽæ¥åœ±é¿ããé¢æ°ã®äœ¿çšãé¿ããå¿ èŠããããšããäºå®ããæããŸãã
å¯èœãªéããDOMãçŽæ¥æäœããåã«ããèããŠãã ããã ãã©ãŠã¶ã®DOMãšã®å¯Ÿè©±ãå¿ èŠãªå Žåã¯ãAngular RendererãŸãã¯ã¬ã³ããªã³ã°æœè±¡åã䜿çšããŠãã ããã
Googlebotã¯HTMLãµã€ããšJSãµã€ããåãããã«æ±ããŸããïŒ
Elephateã§ã¯ãHTMLã®ã¿ã䜿çšãããµã€ããšJavaScriptããŒã¹ã®ãµã€ããã¯ããŒã«ããéã«ãGooglebotããªã³ã¯ã®æ€çŽ¢ãšãªã³ã¯ã®ããã²ãŒããã©ã®çšåºŠé²ããããšãã§ãããã調ã¹ãããã®å®éšãè¡ããŸããã
ãã®ç 究ã¯é©ãã¹ãçµæããããããŸããã HTMLãµã€ãã®å ŽåãGooglebotã¯ãã¹ãŠã®ããŒãžã®ã€ã³ããã¯ã¹ãäœæã§ããŸããã ãã ããJSã«åºã¥ããŠãµã€ããåŠçããå ŽåãGooglebotã2çªç®ã®ã¬ãã«ã«å°éããããšããéåžžã«äžè¬çã§ããã 5ã€ã®ç°ãªããã¡ã€ã³ã§å®éšãç¹°ãè¿ããŸããããçµæã¯åžžã«åãã§ããã
JSããŒã¹ã®HTMLããã³ã€ã³ããã¯ã¹äœæå®éš
Bartosh Goralevichã¯Googleã®John Mullerã«ç®ãåããåé¡ã®åå ã«ã€ããŠè³ªåããŸããã ãžã§ã³ã¯ãGoogleãJavaScriptã«ãã£ãŠçæããããªã³ã¯ãèŠãŠããããšã確èªããŸããããã Googlebotã¯ããããã¯ããŒã«ããããšããŸããã ã 圌ã¯æ¬¡ã®ããã«ä»ãå ããŸãã ããç¹ã«ã¢ã«ãŽãªãºã ã®URLã®å€ãããããªãå Žåã¯ããã¹ãŠã®URLãã¯ããŒã«ããªããããã¹ãŠããã°ããã¯ããŒã«ããŸããã ã³ã³ãã³ãã®äŸ¡å€ã¯ããã¹ããµã€ãã®ææ§ãªåŽé¢ã§ããã
ãã®ãããã¯ã詳ãã調ã¹ããå Žåã¯ã ãã®è³æãã芧ã«ãªãããšããå§ãããŸãã
ãã¹ããµã€ãã®ã€ã³ããã¯ã¹äœæå®éšã®è©³çŽ°
äžèšã®å®éšã«é¢ããç§ã®ã¢ã€ãã¢ã®äžéšãå ±æããããšæããŸãã ãããã£ãŠã調æ»å¯Ÿè±¡ã®ãµã€ãã¯å®éšç®çã§ã®ã¿äœæãããŸããããåãã¢ãããŒãã䜿çšããŠãµã€ããåããŠããããšã«æ³šæããŠãã ããã ã€ãŸãããããã®ããã¹ãã¯ã人工ç¥èœæè¡ã«åºã¥ããèå³æ·±ãã³ã³ãã³ããžã§ãã¬ãŒã¿ãŒã§ããArticooloã䜿çšããŠäœæãããŸããã 圌ã¯ç§ã®æç« ãããééããªãåªããããªãè¯ãããã¹ããäœæããŸãã
Googlebotã¯éåžžã«ãã䌌ã2ã€ã®Webãµã€ããåãåãããã®ãã¡ã®1ã€ã ããã¯ããŒã«ããJSã䜿çšãããµã€ããããHTML Webãµã€ããåªå ããŸããã ããã¯ãªãã§ããïŒ ããã€ãã®ä»®å®ãæ瀺ããŸãã
- 仮説1 Googleã®ã¢ã«ãŽãªãºã ã¯ãäž¡æ¹ã®ãµã€ãããã¹ããµã€ããšããŠåé¡ãããããã«åºå®ã©ã³ã¿ã€ã ãå²ãåœãŠãŸããã 6ããŒãžã®ã€ã³ããã¯ã¹äœæã20ç§ã®äœæ¥æéïŒãã¹ãŠã®ãªãœãŒã¹ã®èªã¿èŸŒã¿ãšããŒãžã®äœæïŒã®ãããªãã®ã«ã§ãããšããŸãããã
- 仮説2 Googlebotã¯äž¡æ¹ã®ãµã€ãããã¹ããšããŠåé¡ããŸããã JSãµã€ãã®å Žåã圌ã¯ãªãœãŒã¹ã®ããŒãã«æéããããããããããåçŽã«ã¹ãã£ã³ããªãã£ãããšã«æ°ä»ããŸããã
äžèšã®ãŠã§ããµã€ããžã®å€ãã®é«å質ã®å®éã®ãªã³ã¯ããããŸãã å€ãã®äººãåãã§ã€ã³ã¿ãŒãããäžã®ãªã³ã¯ãå ±æããŸããã ããã«ããªãŒã¬ããã¯ãã©ãã£ãã¯ãåãåããŸããã ããã§ããã¹ããµã€ããšå®éã®ãµã€ããã©ã®ããã«åºå¥ããããšããçåãçããŸãã ããã¯ç°¡åãªäœæ¥ã§ã¯ãããŸããã
ã¯ã©ã€ã¢ã³ãã§ã¬ã³ããªã³ã°ãããæ°ããWebãµã€ããäœæãããšãç§ãã¡ãšãŸã£ããåãç¶æ³ã«é¥ãå¯èœæ§ãé«ããªããŸãã ãã®å ŽåãGooglebotã¯åã«ã¯ããŒã«ããŸããã ããããçè«ãçµãããå®éã®åé¡ãå§ãŸããŸãã ããã«ãããã§ã®äž»ãªåé¡ã¯ãWebãµã€ãããªã³ã©ã€ã³ã¹ãã¢ããŸãã¯ã¯ã©ã€ã¢ã³ãåŽã¬ã³ããªã³ã°ã䜿çšããäŒç€Ÿã®ããŒãžãæ€çŽ¢çµæã§é«ãäœçœ®ãå ããå Žåãå®éã®äŸããªãããšã§ãã ãããã£ãŠãJavaScriptæ©èœã«æºã¡ããµã€ãããåçã®HTMLãšåããããé«ãæ€çŽ¢é äœãç²åŸããããšãä¿èšŒã§ããŸããã
ã»ãšãã©ã®SEOå°é家ã¯ãã§ã«ãããç¥ã£ãŠãããšæããã倧äŒæ¥ã¯ãããã®åé¡ã«å¯ŸåŠããããã«ç¹å®ã®è³éãåããããšãã§ããŸãã ããããæ段ãç¥èããªãäžå°äŒæ¥ã¯ã©ãã§ããããïŒ ããã¯ãã¯ã©ã€ã¢ã³ãåŽã®èŠèŠåã䜿çšããå°ããªãã¡ããªãŒã¬ã¹ãã©ã³ãµã€ãã®ãããªãã®ã«ãšã£ãŠã¯æ¬åœã®å±éºã§ãã
ãŸãšã
ç°¡æœã«èŠçŽãããšã次ã®ãªã¹ãã®çµè«ãšæšå¥šäºé ãèŠçŽããŠããŸãã
- Googleã¯ãŠã§ããµã€ãã®ã¬ã³ããªã³ã°ã«Chrome 41ã䜿çšããŠããŸãã ãã®ããŒãžã§ã³ã®Chromeã¯2015幎ã«ãªãªãŒã¹ããããããææ°ã®JavaScriptæ©èœããã¹ãŠãµããŒãããŠããããã§ã¯ãããŸããã Chrome 41ã䜿çšããŠãGoogleãããŒãžãé©åã«åŠçã§ãããã©ããã確èªã§ããŸãã Chrome 41ã®äœ¿çšã®è©³çŽ°ã«ã€ããŠã¯ã ãã¡ããã芧ãã ãã ã
- éåžžããµã€ãããŒãžã®ãœãŒã¹HTMLã³ãŒãã®ã¿ãåæããã ãã§ã¯äžååã§ãã 代ããã«ãDOMãèŠãŠãã ããã
- Googleã¯ãJavaScriptã¬ã³ããªã³ã°ãåºç¯å²ã«äœ¿çšããå¯äžã®æ€çŽ¢ãšã³ãžã³ã§ãã
- Googleãã£ãã·ã¥ã䜿çšããŠãGoogleãããŒãžã®ã³ã³ãã³ããã©ã®ããã«ã€ã³ããã¯ã¹ä»ããããã確èªããªãã§ãã ããã ãã£ãã·ã¥ãåæããããšã«ããããã©ãŠã¶ãGooglebotãåéããHTMLããŒã¿ãã©ã®ããã«è§£éãããã®ã¿ã確èªã§ããŸãã ããã¯ãã€ã³ããã¯ã¹ãäœæããåã«Googleããã®ããŒã¿ãåŠçããæ¹æ³ãšã¯é¢ä¿ãããŸããã
- ååŸããŒã«ãšã¬ã³ããªã³ã°ããŒã«ãå®æçã«äœ¿çšããŸãã ãã ããã¿ã€ã ã¢ãŠãã«äŸåããªãã§ãã ããã ã€ã³ããã¯ã¹ãäœæãããšãããŸã£ããç°ãªãã¿ã€ã ã¢ãŠããé©çšãããå ŽåããããŸãã
-
site
ã³ãã³ããåŠç¿ãsite
ã - ãŠãŒã¶ãŒãããŠã¹ã¯ãªãã¯ã§ãã®ã¡ãã¥ãŒãåŒã³åºãåã§ããDOMã«ã¡ãã¥ãŒé ç®ãååšããããšã確èªããŠãã ããã
- Googleã®ã¢ã«ãŽãªãºã ã¯ããã®ãªãœãŒã¹ãåŠçããŠããŒãžã圢æããé©åæ§ã®èŠ³ç¹ããããªãœãŒã¹ã®äŸ¡å€ãå€æããããšããŠããŸãã ãããã®ã¢ã«ãŽãªãºã ã«ãããšããªãœãŒã¹ã«äŸ¡å€ããªãå ŽåãGooglebotã¯ãªãœãŒã¹ãããŠã³ããŒãã§ããŸããã
- Webéçºè ã¯ãã¹ã¯ãªããã®å®è¡é床ã確ä¿ããããåªåããå¿ èŠããããŸãïŒå€ãã®å®éšã¯ãGoogleãããŠã³ããŒããã§ãŒãºãå«ãã¹ã¯ãªããã®çµæã5ç§ä»¥äžåŸ ã€ããšã¯ã»ãšãã©ãªãããšã瀺ããŠããŸãïŒããŸããã¹ã¯ãªãããæé©åããŠãã ãããååãšããŠãã»ãšãã©ã®ã¹ã¯ãªããã¯æ¹åããã³æ¹åã§ããŸãïŒ
- GoogleãJavaScriptã䜿çšããŠããŒãžã圢æã§ããªãå Žåãæåã«èªã¿èŸŒãŸããHTMLã®ã€ã³ããã¯ã¹ãäœæããããšããããŸãããã®æ¹æ³ã§ã¯ãGoogleã¯ç©ºçœã®ããŒãžãã€ã³ããã¯ã¹ã«ç»é²ãããããããã¯åäžããŒãžã®ã¢ããªã±ãŒã·ã§ã³ã«éåžžã«æªã圱é¿ãäžããå¯èœæ§ããããŸãã
- æ€çŽ¢çµæã§é«ãå°äœãå ããã¯ã©ã€ã¢ã³ãã®ã¬ã³ããªã³ã°ããŒã«ã䜿çšãããµã€ãã®å®éã®äŸã¯ã»ãšãã©ãããŸãããã©ãããŠããæããŸããïŒ
SEO , ( !) Google , JavaScript , , HTML. , , SEO- , JS- , , , . , SEO JavaScript- . - . , , JavaScript, , SEO .
芪æãªãèªè ïŒ , , , JS-?