Gets the page's SEO-related link tags.
Use the links
property to get a page's SEO-related link tags which provide additional
SEO information about your page. For example, the tags may contain a link to a canonical
or alternate version of the current page.
Note:
You should always invoke the wixSeoFrontend.links
getter outside of the onReady()
event handler to
ensure receiving the proper response.
Gets the page's SEO-related meta tags.
The metaTags
property retrieves the SEO-related meta tags from the head of the page.
The keys in the returned metaTags
objects represent the keys in the tag, while the values in the
object represent the values in the tag.
For example:
{
"property": "og:image",
"content": "https://.../Wix+logo.jpg"
}
Produces:
Note:
You should always invoke the wixSeoFrontend.metaTags
getter outside of the onReady()
event handler to
ensure receiving the proper response.
Gets the page's structured data.
The structured data on your page helps search engines understand more about your page and your business so they can display a richer snippet of your pages in search results.
Set the structured data with a list of structured data objects in the JSON-LD format as defined by schema.org.
Note:
You should always invoke the wixSeoFrontend.structuredData
getter outside of the onReady()
event handler to
ensure receiving the proper response.
Gets the page's title.
The title
is an important factor that lets search engines determine the topic of a page.
Note:
You should always invoke the wixSeoFrontend.title
getter outside of the onReady()
event handler to
ensure receiving the proper response.
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.
The links to set.
Sets the page's SEO-related meta tags.
The setMetaTags()
function creates SEO-related meta tags in the head of the page.
The keys in the specified metaTags
objects represent the keys in the tag, while the values in the
metaTags
object represent the values in the tag.
For example:
Produces:
When setting og:image
meta tags, the content
can be and external image URL
or a Media Manager image URL as described here.
The meta tags you set overwrite any meta tag information set earlier.
Notes:
Do not use setMetaTags()
to create tags for the title. Use the setTitle()
function instead.
You should always set the metaTags
inside the onReady()
event handler to ensure search engines can read it.
The meta tags to set.
Sets the page's structured data.
The structured data on your page helps search engines understand more about your page and your business so they can display a richer snippet of your pages in search results.
The structured data you set overwrites any structured data information set earlier.
Note:
You should always set the structured data inside the onReady()
event handler to
ensure search engines can read it.
List of structured data objects in the JSON-LD format as defined by schema.org.
Sets the page's title.
Setting a proper title
is important to let search engines determine the topic of your page.
Note:
You should always set the title inside the onReady()
event handler to
ensure search engines can read it.
The title to set.