Best Website-BuildersBest Website-Builders
    What's Hot

    Florida man attacked by alligator after hearing noise, opening front door

    March 10, 2023

    ‘A19 Waving Man’ given one last beep by truckers

    March 10, 2023

    Six Nations 2023: Ellis Genge’s rise from rough diamond to England captain

    March 10, 2023
    Facebook Twitter Instagram
    Facebook Twitter Instagram
    Best Website-BuildersBest Website-Builders
    • Home
    • CSS

      Stingray device illegally deployed by ICE, Secret Service, according to DHS Surveillance Report

      March 10, 2023

      Jamie Berry Announced as President of Evolver Legal Services

      March 9, 2023

      Parent background visible only from child elements – HTML & CSS – SitePoint Forums

      March 9, 2023

      National Assembly amends standing order to allow CS to attend House of Commons from 23 March » Capital News

      March 9, 2023

      Apple Releases Safari Technology Preview 165 – Brings Bug Fixes and Performance Improvements

      March 9, 2023
    • Joomla

      Web Content Management Systems Market Business Growth Potential 2023-2030

      March 6, 2023

      How to create a successful content strategy framework

      March 3, 2023

      Free Website Hosting Services for Efficient and Reliable Work

      March 2, 2023

      Bluehost Review 2023 – Is It the Fastest Hosting Service?

      March 2, 2023

      Intermediate PHP Developer – IT-Online

      March 1, 2023
    • PHP

      Susana Morales’ family calls for police accountability

      March 10, 2023

      Sheana Shay’s lawyer denies Sheana hit Raquel

      March 10, 2023

      Tennessee Lieutenant Governor Randy McNall comments on men’s thirst trap

      March 9, 2023

      Man charged with spray-painting ‘groomers’ in library, charged with child pornography

      March 9, 2023

      TikTok users are experimenting with M&Ms as eyeshadow and more prison makeup tips

      March 9, 2023
    • UX

      Flipper Zero device seized by Brazilian Telecommunications Authority

      March 10, 2023

      Imagine looking at your job postings on LinkedIn and being paid $32,000 to $90,000 more than you earn.

      March 10, 2023

      SNAP participants in all 53 states and territories were finally able to get their stolen benefits reimbursed, and consumer complaints about credit reporting issues increased 96% in one year.

      March 9, 2023

      What Ethereum’s Latest Rollout Means for ETH and Its Roadmap

      March 9, 2023

      BMW’s iDrive 8.5 updated for smartphone-like user experience

      March 9, 2023
    • Web Builders
      1. Web Design
      2. View All

      What Comes First in Website Development — Design or Copy?

      February 2, 2023

      Modern Campus Honors Best Higher Education Websites of 2022

      February 2, 2023

      Premier SEO Consultant in Las Vegas, Nevada with Unparalleled Customer Service

      February 2, 2023

      Can Religious Freedom Be Saved? This group is racing the clock to teach America’s first freedom

      February 2, 2023

      How i Create New Google Account

      February 7, 2023

      CWT powers tools for meeting and event planners

      January 31, 2023

      Best Website Builder – Website Builders

      January 24, 2023

      Is There A Market For Rap-Themed Slot Games? – Rap Review

      January 19, 2023
    • WordPress

      Quordle today – Tips and Answers for Friday March 10th (Game #410)

      March 10, 2023

      Windows 11 Preview shows File Explorer ready to suggest the next file to open

      March 10, 2023

      Lenovo’s new Thinkstation PX workstation has up to 120 CPU cores but lacks key features

      March 10, 2023

      Intel breaks Cinebench R23 world record with its ultra-powerful Sapphire Rapids chip

      March 9, 2023

      Sorry Gamers, Steam Deck 2 Is A Long Way Ahead

      March 9, 2023
    • Realtoz
      • Our Other Sites
    • More News
    Best Website-BuildersBest Website-Builders
    Home » Google documents how to insert canonical tags using JavaScript
    JavaScript

    Google documents how to insert canonical tags using JavaScript

    websitebuildersnowBy websitebuildersnowJune 30, 2022No Comments2 Mins Read
    Facebook Twitter LinkedIn Telegram Pinterest Tumblr Reddit WhatsApp Email
    Share
    Facebook Twitter LinkedIn Pinterest Email


    Google has updated the JavaScript SEO help documentation with more technical details on how to insert canonical link tags using JavaScript. Google has added a new section entitled “Properly insert rel=”canonical” link tags”.

    what’s new This is a new section where Google recommends against implementing canonical tags using JavaScript, but Google explains that if you need to do so, this is the right way to go. Google writes:

    We don’t recommend using JavaScript for this, but it is possible to inject a rel=”canonical” link tag in JavaScript. Google Search gets the canonical URL inserted when the page is rendered. Below is an example of inserting a rel=”canonical” link tag in JavaScript.

    Google added a warning “If you use JavaScript to insert a rel=”canonical” link tag, make sure this is the only rel=”canonical” link tag on the page” . Improper implementation can create multiple rel=”canonical” link tags or modify existing rel=”canonical” link tags. Conflicting or multiple rel=”canonical” link tags can lead to unexpected results. ”

    Hit and miss. We’ve seen cases where Google can retrieve these standard tags and other embedded elements, as well as structured data, using JavaScript. However, things can go wrong, so we recommend that you follow these instructions exactly when using JavaScript to insert canonical tags.

    why you care. Again, when using JavaScript to inject standard tags, Google has finally officially documented the proper way to implement it. Check the documentation here to make sure your implementation follows Google’s recommendations.


    Add Search Engine Land to your Google News Feed. google news


    What’s New in Search Engine Land

    About the author

    Barry Schwartz

    Barry Schwartz is a contributing editor for Search Engine Land and a member of the programming team for SMX events. He owns his RustyBrick, his New York-based web consulting firm. He also runs the Search Engine Roundtable, a popular search blog on highly advanced He SEM topics.You can follow Barry Twitter is here.



    Source link

    Share this:

    • Tweet
    • Email
    • Pocket
    • Mastodon
    • WhatsApp
    • Telegram
    • Share on Tumblr
    • Print
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Telegram Email
    Previous ArticleCourt reviews AFCA decision on SMSF
    Next Article 5 ways to check if an object is empty in JavaScript
    websitebuildersnow
    • Website

    Related Posts

    How to pass an array from Java to JavaScript

    March 9, 2023

    DAP — Web3’s New App Success Metrics | Eric Elliot | | The JavaScript Scene | March 2023

    March 9, 2023

    Top 10 AI Extensions for Visual Studio Code — Visual Studio Magazine

    March 8, 2023
    Add A Comment

    Leave a Reply Cancel reply

    Top Posts

    Subscribe to Updates

    Get the latest sports news from SportsSite about soccer, football and tennis.

    Advertisement
    Demo

    This website provides information about CSS and other things. Keep Supporting Us With the Latest News and we Will Provide the Best Of Our To Makes You Updated All Around The World News. Keep Sporting US.

    Facebook Twitter Instagram Pinterest YouTube
    Top Insights

    Florida man attacked by alligator after hearing noise, opening front door

    March 10, 2023

    ‘A19 Waving Man’ given one last beep by truckers

    March 10, 2023

    Six Nations 2023: Ellis Genge’s rise from rough diamond to England captain

    March 10, 2023
    Get Informed

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    © 2023 bestwebsite-builders. Designed by bestwebsite-builders.
    • Home
    • About us
    • Contact us
    • DMCA
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.