Upgrade to Pro — share decks privately, control downloads, hide ads and more …

SEOとJava Script。 〜文書構造とチームと、時々、闇〜

yu-kgr
February 09, 2017

SEOとJava Script。 〜文書構造とチームと、時々、闇〜

2016/01/16に開催されたWDF研修「半歩先のSEOで効率よく結果を出そう」で発表させて頂いたLTです。

yu-kgr

February 09, 2017
Tweet

More Decks by yu-kgr

Other Decks in Technology

Transcript

  1. จॻߏ଄Λҙ͍ࣝͯ͠Δ w Ϋϩʔϥʔ͸ιʔείʔυΛݟ͍ͯΔɻ <h1 class="entryTitle">1/16։࠵ WDFݚमʮ൒าઌͷSEOͰޮ཰Α݁͘ՌΛग़ͦ͏ʯ</h1>
 <p>
 ɹWDFͷ2016೥࠷ॳͷηϛφʔ͸ɺSEOͷୈҰਓऀͰWDFʹաڈ3ճߨԋ͍͍͍ͯͨͩͯ͠Δ
 ɹॅ ଠཅ͞ΜΛ͓ট͖ͯ͠ɺWDFݚमʮ൒าઌͷSEOͰޮ཰Α݁͘ՌΛग़ͦ͏ʯΛ։࠵͠·͢ɻ


    ɹॅ͞Μ͔Β͸ɺʮ௚ۙͷηϛφʔͰ࿩ͨ͠಺༰͢΂ͯΛ٧ΊࠐΜͩ૯ूฤʯɺ
 ɹʮ಺༰ͷೱ͗͢Δηϛφʔʯͱ͍͏ίϝϯτΛ͍͍͍ͨͩͯ·͢ɻ
 ɹ೔ʑͷӡ༻ͷώϯτ͕ඞͣݟ͔ͭΓ·͢ɻͥͻ͝ࢀՃ͍ͩ͘͞ɻ
 </p>
 
 <h2>൒าઌͷSEOͰޮ཰Α݁͘ՌΛग़ͦ͏</h2>
 <p>
 ɹ΢ΣϒϚελʔͷखؒͱ࣌ؒ͸ԿΑΓ΋େ੾ͳ΋ͷɻޮՌͷബ͍࠷దԽࢪࡦ΍ɺ
 ɹPV͹͔ΓͰച্ʹͭͳ͕Βͳ͍ίϯςϯπ࡞Γʹɺେ੾ͳखؒͱ࣌ؒ͸͔͚ΒΕ·ͤΜɻ
 ɹ࣮֬ʹɺ͔͠΋ɺޮ཰Α݁͘ՌΛग़͢ʹ͸ɺूத͢΂͖ͱ͜Ζͱͦ͏Ͱͳ͍ͱ͜ΖΛ
 ɹ੾Γ෼͚Δඞཁ͕͋Γ·͢ɻ
 </p>
  2. จॻߏ଄Λҙ͍ࣝͯ͠Δ w Ϋϩʔϥʔ͸ιʔείʔυΛݟ͍ͯΔɻ <h1 class="entryTitle">1/16։࠵ WDFݚमʮ൒าઌͷSEOͰޮ཰Α݁͘ՌΛग़ͦ͏ʯ</h1>
 <p>
 ɹWDFͷ2016೥࠷ॳͷηϛφʔ͸ɺSEOͷୈҰਓऀͰWDFʹաڈ3ճߨԋ͍͍͍ͯͨͩͯ͠Δ
 ɹॅ ଠཅ͞ΜΛ͓ট͖ͯ͠ɺWDFݚमʮ൒าઌͷSEOͰޮ཰Α݁͘ՌΛग़ͦ͏ʯΛ։࠵͠·͢ɻ


    ɹॅ͞Μ͔Β͸ɺʮ௚ۙͷηϛφʔͰ࿩ͨ͠಺༰͢΂ͯΛ٧ΊࠐΜͩ૯ूฤʯɺ
 ɹʮ಺༰ͷೱ͗͢Δηϛφʔʯͱ͍͏ίϝϯτΛ͍͍͍ͨͩͯ·͢ɻ
 ɹ೔ʑͷӡ༻ͷώϯτ͕ඞͣݟ͔ͭΓ·͢ɻͥͻ͝ࢀՃ͍ͩ͘͞ɻ
 </p>
 
 <h2>൒าઌͷSEOͰޮ཰Α݁͘ՌΛग़ͦ͏</h2>
 <p>
 ɹ΢ΣϒϚελʔͷखؒͱ࣌ؒ͸ԿΑΓ΋େ੾ͳ΋ͷɻޮՌͷബ͍࠷దԽࢪࡦ΍ɺ
 ɹPV͹͔ΓͰച্ʹͭͳ͕Βͳ͍ίϯςϯπ࡞Γʹɺେ੾ͳखؒͱ࣌ؒ͸͔͚ΒΕ·ͤΜɻ
 ɹ࣮֬ʹɺ͔͠΋ɺޮ཰Α݁͘ՌΛग़͢ʹ͸ɺूத͢΂͖ͱ͜Ζͱͦ͏Ͱͳ͍ͱ͜ΖΛ
 ɹ੾Γ෼͚Δඞཁ͕͋Γ·͢ɻ
 </p> ʜ΄͏ɻେݟग़͠͸ʮ։࠵8%'
  3. จॻߏ଄Λҙࣝͯ͠ͳ͍ w Ϋϩʔϥʔ͸ιʔείʔυΛݟ͍ͯΔɻ <b>1/16։࠵ WDFݚमʮ൒าઌͷSEOͰޮ཰Α݁͘ՌΛग़ͦ͏ʯ</b><br>
 <br>
 WDFͷ2016೥࠷ॳͷηϛφʔ͸ɺSEOͷୈҰਓऀͰWDFʹաڈ3ճߨԋ͍͍͍ͯͨͩͯ͠Δ
 ॅ ଠཅ͞ΜΛ͓ট͖ͯ͠ɺWDFݚमʮ൒าઌͷSEOͰޮ཰Α݁͘ՌΛग़ͦ͏ʯΛ։࠵͠·͢ɻ
 ॅ͞Μ͔Β͸ɺʮ௚ۙͷηϛφʔͰ࿩ͨ͠಺༰͢΂ͯΛ٧ΊࠐΜͩ૯ूฤʯɺ


    ʮ಺༰ͷೱ͗͢Δηϛφʔʯͱ͍͏ίϝϯτΛ͍͍͍ͨͩͯ·͢ɻ
 ೔ʑͷӡ༻ͷώϯτ͕ඞͣݟ͔ͭΓ·͢ɻͥͻ͝ࢀՃ͍ͩ͘͞ɻ
 <br>
 <br>
 <b>൒าઌͷSEOͰޮ཰Α݁͘ՌΛग़ͦ͏</b><br>
 <br>
 ΢ΣϒϚελʔͷखؒͱ࣌ؒ͸ԿΑΓ΋େ੾ͳ΋ͷɻޮՌͷബ͍࠷దԽࢪࡦ΍ɺ
 PV͹͔ΓͰച্ʹͭͳ͕Βͳ͍ίϯςϯπ࡞Γʹɺେ੾ͳखؒͱ࣌ؒ͸͔͚ΒΕ·ͤΜɻ
 ࣮֬ʹɺ͔͠΋ɺޮ཰Α݁͘ՌΛग़͢ʹ͸ɺूத͢΂͖ͱ͜Ζͱͦ͏Ͱͳ͍ͱ͜ΖΛ
 ੾Γ෼͚Δඞཁ͕͋Γ·͢ɻ

  4. จॻߏ଄Λҙࣝͯ͠ͳ͍ w Ϋϩʔϥʔ͸ιʔείʔυΛݟ͍ͯΔɻ <b>1/16։࠵ WDFݚमʮ൒าઌͷSEOͰޮ཰Α݁͘ՌΛग़ͦ͏ʯ</b><br>
 <br>
 WDFͷ2016೥࠷ॳͷηϛφʔ͸ɺSEOͷୈҰਓऀͰWDFʹաڈ3ճߨԋ͍͍͍ͯͨͩͯ͠Δ
 ॅ ଠཅ͞ΜΛ͓ট͖ͯ͠ɺWDFݚमʮ൒าઌͷSEOͰޮ཰Α݁͘ՌΛग़ͦ͏ʯΛ։࠵͠·͢ɻ
 ॅ͞Μ͔Β͸ɺʮ௚ۙͷηϛφʔͰ࿩ͨ͠಺༰͢΂ͯΛ٧ΊࠐΜͩ૯ूฤʯɺ


    ʮ಺༰ͷೱ͗͢Δηϛφʔʯͱ͍͏ίϝϯτΛ͍͍͍ͨͩͯ·͢ɻ
 ೔ʑͷӡ༻ͷώϯτ͕ඞͣݟ͔ͭΓ·͢ɻͥͻ͝ࢀՃ͍ͩ͘͞ɻ
 <br>
 <br>
 <b>൒าઌͷSEOͰޮ཰Α݁͘ՌΛग़ͦ͏</b><br>
 <br>
 ΢ΣϒϚελʔͷखؒͱ࣌ؒ͸ԿΑΓ΋େ੾ͳ΋ͷɻޮՌͷബ͍࠷దԽࢪࡦ΍ɺ
 PV͹͔ΓͰച্ʹͭͳ͕Βͳ͍ίϯςϯπ࡞Γʹɺେ੾ͳखؒͱ࣌ؒ͸͔͚ΒΕ·ͤΜɻ
 ࣮֬ʹɺ͔͠΋ɺޮ཰Α݁͘ՌΛग़͢ʹ͸ɺूத͢΂͖ͱ͜Ζͱͦ͏Ͱͳ͍ͱ͜ΖΛ
 ੾Γ෼͚Δඞཁ͕͋Γ·͢ɻ
 ʜͲ͏͍͏ࣄͩͬͯ͹Αʂʁ
  5. ʁ

  6. +40/ͷσʔλΛ+4Ͱ)5.-ʹඳը
 
 
 
 
 
 
 
 
 //

    HTML
 <body>
 <h1>؋ୂҰཡ</h1> 
 <ul>
 <li></li>
 <li></li>
 </ul>
 </body> ԿͰ΋͔ΜͰ΋+4Ͱॲཧ͠ͳ͍
  7. +40/ͷσʔλΛ+4Ͱ)5.-ʹඳը
 // JSON
 [
 {
 "title": "૓Ӣ",
 "genre": "ۦஞ؋",
 "note":

    “զʑͷۀքͰ͸͝๙ඒͰ͢",
 "url": “https://murakumo.com”
 },
 {
 "title": "ౡ෩",
 "genre": "ۦஞ؋",
 "note": “ΊͬͪΌૣ͍",
 "url": “https://simakaze.com”
 },
 ] 
 
 
 
 
 
 
 
 // HTML
 <body>
 <h1>؋ୂҰཡ</h1> 
 <ul>
 <li></li>
 <li></li>
 </ul>
 </body> ԿͰ΋͔ΜͰ΋+4Ͱॲཧ͠ͳ͍
  8. +40/ͷσʔλΛ+4Ͱ)5.-ʹඳը
 // JS
 $.getJSON(“itemlist.json” ,function(data) {
 $(data).each(function){
 $(“<h2><a href=“”+this.url+””>+this.title+”</a></h2>”)
 .appendTo(‘ul

    li’);
 }
 });
 
 // HTML
 <body>
 <h1>؋ୂҰཡ</h1> 
 <ul>
 <li></li>
 <li></li>
 </ul>
 </body> // JSON
 [
 {
 "title": "૓Ӣ",
 "genre": "ۦஞ؋",
 "note": “զʑͷۀքͰ͸͝๙ඒͰ͢",
 "url": “https://murakumo.com”
 },
 {
 "title": "ౡ෩",
 "genre": "ۦஞ؋",
 "note": “ΊͬͪΌૣ͍",
 "url": “https://simakaze.com”
 },
 ] ԿͰ΋͔ΜͰ΋+4Ͱॲཧ͠ͳ͍
  9. +40/ͷσʔλΛ+4Ͱ)5.-ʹඳը
 // JS
 $.getJSON(“itemlist.json” ,function(data) {
 $(data).each(function){
 $(“<h2><a href=“”+this.url+””>+this.title+”</a></h2>”)
 .appendTo(‘ul

    li’);
 }
 });
 
 // HTML
 <body>
 <h1>؋ୂҰཡ</h1> 
 <ul>
 <li><h2><a href=“https://murakumo.com”>૓Ӣ</a></h2></li>
 <li><h2><a href=“https://simakaze.com”>ౡ෩</a></h2></li>
 </ul>
 </body> // JSON
 [
 {
 "title": "૓Ӣ",
 "genre": "ۦஞ؋",
 "note": “զʑͷۀքͰ͸͝๙ඒͰ͢",
 "url": “https://murakumo.com”
 },
 {
 "title": "ౡ෩",
 "genre": "ۦஞ؋",
 "note": “ΊͬͪΌૣ͍",
 "url": “https://simakaze.com”
 },
 ] ԿͰ΋͔ΜͰ΋+4Ͱॲཧ͠ͳ͍
  10. +40/ͷσʔλΛ+4Ͱ)5.-ʹඳը
 // JSON
 [
 {
 "title": "૓Ӣ",
 "genre": "ۦஞ؋",
 "note":

    “զʑͷۀքͰ͸͝๙ඒͰ͢",
 "url": “https://murakumo.com”
 },
 {
 "title": "ౡ෩",
 "genre": "ۦஞ؋",
 "note": “ΊͬͪΌૣ͍",
 "url": “https://simakaze.com”
 },
 ] // JS
 $.getJSON(“itemlist.json” ,function(data) {
 $(data).each(function){
 $(“<h2><a href=“”+this.url+””>+this.title+”</a></h2>”)
 .appendTo(‘ul li’);
 }
 });
 
 // HTML
 <body>
 <h1>؋ୂҰཡ</h1> 
 <ul>
 <li><h2><a href=“https://murakumo.com”>૓Ӣ</a></h2></li>
 <li><h2><a href=“https://simakaze.com”>ౡ෩</a></h2></li>
 </ul>
 </body> ԿͰ΋͔ΜͰ΋+4Ͱॲཧ͠ͳ͍ w 63-͸ಈతʹੜ੒͠ͳ͍
 ˞ෆ׬શͳ63-ΛΫϩʔϧͯ͠ΤϥʔΛग़͢ࣄ͕͋Δҝ
  11. +40/ͷσʔλΛ+4Ͱ)5.-ʹඳը
 // JSON
 [
 {
 "title": "૓Ӣ",
 "genre": "ۦஞ؋",
 "note":

    “զʑͷۀքͰ͸͝๙ඒͰ͢",
 "url": “https://murakumo.com”
 },
 {
 "title": "ౡ෩",
 "genre": "ۦஞ؋",
 "note": “ΊͬͪΌૣ͍",
 "url": “https://simakaze.com”
 },
 ] // JS
 $.getJSON(“itemlist.json” ,function(data) {
 $(data).each(function){
 $(“<h2><a href=“”+this.url+””>+this.title+”</a></h2>”)
 .appendTo(‘ul li’);
 }
 });
 
 // HTML
 <body>
 <h1>؋ୂҰཡ</h1> 
 <ul>
 <li><h2><a href=“https://murakumo.com”>૓Ӣ</a></h2></li>
 <li><h2><a href=“https://simakaze.com”>ౡ෩</a></h2></li>
 </ul>
 </body> ԿͰ΋͔ΜͰ΋+4Ͱॲཧ͠ͳ͍ w 63-͸ಈతʹੜ੒͠ͳ͍
 ˞ෆ׬શͳ63-ΛΫϩʔϧͯ͠ΤϥʔΛग़͢ࣄ͕͋Δҝ w )5.-ࣗମʹBISFGlIPHFzͰهࡌ͢Δ
  12. +40/ͷσʔλΛ+4Ͱ)5.-ʹඳը
 // JSON
 [
 {
 "title": "૓Ӣ",
 "genre": "ۦஞ؋",
 "note":

    “զʑͷۀքͰ͸͝๙ඒͰ͢",
 "url": “https://murakumo.com”
 },
 {
 "title": "ౡ෩",
 "genre": "ۦஞ؋",
 "note": “ΊͬͪΌૣ͍",
 "url": “https://simakaze.com”
 },
 ] // JS
 $.getJSON(“itemlist.json” ,function(data) {
 $(data).each(function){
 $(“<h2><a href=“”+this.url+””>+this.title+”</a></h2>”)
 .appendTo(‘ul li’);
 }
 });
 
 // HTML
 <body>
 <h1>؋ୂҰཡ</h1> 
 <ul>
 <li><h2><a href=“https://murakumo.com”>૓Ӣ</a></h2></li>
 <li><h2><a href=“https://simakaze.com”>ౡ෩</a></h2></li>
 </ul>
 </body> ԿͰ΋͔ΜͰ΋+4Ͱॲཧ͠ͳ͍ w 63-͸ಈతʹੜ੒͠ͳ͍
 ˞ෆ׬શͳ63-ΛΫϩʔϧͯ͠ΤϥʔΛग़͢ࣄ͕͋Δҝ w )5.-ࣗମʹBISFGlIPHFzͰهࡌ͢Δ w ΦϦδφϧςΩετ͸ඇಉظʹ͠ͳ͍
 ˞(PPHMF͸ΦϦδφϧςΩετΛߴ͘ධՁ͢Δ܏޲͕͋Δҝ
  13. ԿͰ΋͔ΜͰ΋+4Ͱॲཧ͠ͳ͍ +40/ͷσʔλΛ+4Ͱ)5.-ʹඳը
 // JSON
 [
 {
 "title": "૓Ӣ",
 "genre": "ۦஞ؋",


    "note": “զʑͷۀքͰ͸͝๙ඒͰ͢",
 "url": “https://murakumo.com”
 },
 {
 "title": "ౡ෩",
 "genre": "ۦஞ؋",
 "note": “ΊͬͪΌૣ͍",
 "url": “https://simakaze.com”
 },
 ] // JS
 $.getJSON(“itemlist.json” ,function(data) {
 $(data).each(function){
 $(“<h2><a href=“”+this.url+””>+this.title+”</a></h2>”)
 .appendTo(‘ul li’);
 }
 });
 
 // HTML
 <body>
 <h1>؋ୂҰཡ</h1> 
 <ul>
 <li><h2><a href=“https://murakumo.com”>૓Ӣ</a></h2></li>
 <li><h2><a href=“https://simakaze.com”>ౡ෩</a></h2></li>
 </ul>
 </body> w 63-͸ಈతʹੜ੒͠ͳ͍
 ˞ෆ׬શͳ63-ΛΫϩʔϧͯ͠ΤϥʔΛग़͢ࣄ͕͋Δҝ w )5.-ࣗମʹBISFGlIPHFzͰهࡌ͢Δ w ΦϦδφϧςΩετ͸ඇಉظʹ͠ͳ͍
 ˞(PPHMF͸ΦϦδφϧςΩετΛߴ͘ධՁ͢Δ܏޲͕͋Δҝ w ߋʹෳ਺ϖʔδʹར༻͢ΔͱϖφϧςΟ
 ˞ίϯςϯπ಺༰͕๡͍͠ϖʔδ͕αΠτ಺ʹଟ਺͋ͬͨ৔߹ɺ௿඼࣭αΠτͱ൑அ
  14. ԿͰ΋͔ΜͰ΋+4Ͱॲཧ͠ͳ͍ +40/ͷσʔλΛ+4Ͱ)5.-ʹඳը
 // JS
 $.getJSON(“itemlist.json” ,function(data) {
 $(data).each(function){
 $(“<h2><a href=“”+this.url+””>+this.title+”</a></h2>”)


    .appendTo(‘ul li’);
 }
 });
 
 // HTML
 <body>
 <h1>؋ୂҰཡ</h1> 
 <ul>
 <li><h2><a href=“https://murakumo.com”>૓Ӣ</a></h2></li>
 <li><h2><a href=“https://simakaze.com”>ౡ෩</a></h2></li>
 </ul>
 </body> // JSON
 [
 {
 "title": "૓Ӣ",
 "genre": "ۦஞ؋",
 "note": “զʑͷۀքͰ͸͝๙ඒͰ͢",
 "url": “https://murakumo.com”
 },
 {
 "title": "ౡ෩",
 "genre": "ۦஞ؋",
 "note": “ΊͬͪΌૣ͍",
 "url": “https://simakaze.com”
 },
 ]