setLinks( )
Sets the page's SEO-related link tags.
Use the setLinks()
function to set a page's SEO-related link tags which provide additional
SEO information about your page. For example, you can set a link to a canonical
or alternate version of the current page.
The links you set overwrite any link information set earlier.
Notes:
-
You should always set the links inside the
onReady()
event handler to ensure search engines can read it. -
You cannot add a stylesheet link using the
setLinks
function.
Method Declaration
Copy
Method Parameters
linksArray<Link>Required
The links to set.
Was this helpful?
Yes
No