Tutorial: Cómo optimizar el SEO de tu blog en Blogger

  • Autor Autor DrmWebmaster
  • Fecha de inicio Fecha de inicio
Este es el codigo sin emojis:

HTML:
 <b:if cond="data:blog.url != data:blog.homepageUrl"><script type="text/javascript">

        function autoLink(){

            this.keywdHref = new Object();

            this.add = function(keyword, href){

                if(keyword.substr(0,1) != &quot; &quot;){keyword = &quot; &quot; + keyword;}

                this.keywdHref[keyword] =  href;

            }

            this.createAnchor = function(){

                var objs = document.getElementsByTagName(&quot;div&quot;);

                for(var i=0; i&lt;objs.length; i++){

                    var obj = objs[i];

                    if(obj.className.indexOf(&quot;post-body&quot;)&gt;-1){

                        var content = obj.innerHTML;

                        for(var keyword in this.keywdHref){

                            var href = this.keywdHref[keyword];

                            var newstr = content.replace(keyword, &quot;&lt;a href='&quot;+href+&quot;'&gt;&quot;+keyword+&quot;&lt;/a&gt;&quot;, &quot;gi&quot;);

                            obj.innerHTML = newstr;

                            content = newstr;

                        }

                    }

                }

            }

            this.startScript = function(){

                var onLoad = window.onload;

                window.onload = function(){

                    if(onLoad){onLoad();}

                    setTimeout(&quot;f.createAnchor()&quot;, 100);

                }

            }

        }

        </script>

        <script type="text/javascript">

        var f = new autoLink();

        f.add(&quot;AQUI PON TU PALABRA CLAVE&quot;, &quot;https://NOMBREDETUBLOG.blogspot.com/&quot;);

        f.startScript();

        </script></b:if>

donde dice AQUI PON TU PALABRA CLAVE pues las pones :V
donde dice Test blog cambiarla por tu url de blog
si es personalizada cambiarla por https://nombre.com/

Muchas gracias lo probaré!!
 
Les funciono ?
 
Alguien pudo verificar si funcionaba?
Gracias
 
Ps al parecer si
 
Este es el codigo sin emojis:

HTML:
 <b:if cond="data:blog.url != data:blog.homepageUrl"><script type="text/javascript">

        function autoLink(){

            this.keywdHref = new Object();

            this.add = function(keyword, href){

                if(keyword.substr(0,1) != &quot; &quot;){keyword = &quot; &quot; + keyword;}

                this.keywdHref[keyword] =  href;

            }

            this.createAnchor = function(){

                var objs = document.getElementsByTagName(&quot;div&quot;);

                for(var i=0; i&lt;objs.length; i++){

                    var obj = objs[i];

                    if(obj.className.indexOf(&quot;post-body&quot;)&gt;-1){

                        var content = obj.innerHTML;

                        for(var keyword in this.keywdHref){

                            var href = this.keywdHref[keyword];

                            var newstr = content.replace(keyword, &quot;&lt;a href='&quot;+href+&quot;'&gt;&quot;+keyword+&quot;&lt;/a&gt;&quot;, &quot;gi&quot;);

                            obj.innerHTML = newstr;

                            content = newstr;

                        }

                    }

                }

            }

            this.startScript = function(){

                var onLoad = window.onload;

                window.onload = function(){

                    if(onLoad){onLoad();}

                    setTimeout(&quot;f.createAnchor()&quot;, 100);

                }

            }

        }

        </script>

        <script type="text/javascript">

        var f = new autoLink();

        f.add(&quot;AQUI PON TU PALABRA CLAVE&quot;, &quot;https://NOMBREDETUBLOG.blogspot.com/&quot;);

        f.startScript();

        </script></b:if>

donde dice AQUI PON TU PALABRA CLAVE pues las pones :V
donde dice Test blog cambiarla por tu url de blog
si es personalizada cambiarla por https://nombre.com/
Alguien sabe si funciona?
 
Ay que probarlo a ver q tal
 
Bueno yo lo probaré, aunque los resultados no sean inmediatos en mi caso particular ya que aún recién empiezo. Sería factible eso para alguien que recién empieza?
 
muchas gracias por el aporte amigo, he estado aprendiendo un poco mas de este medio para unos proyectos que tengo en mente y esto me ha venido como anillo al dedo.
 
Atrás
Arriba