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.
import wixSeoFrontend from "wix-seo-frontend";
// ...
let structuredData = wixSeoFrontend.structuredData;
/* structuredData:
*
* [
* {
* "@context": "http://schema.org",
* "@type": "Organization",
* "name": "My Organization Name",
* "url": "https://www.myorgdomain.com"
* },
* {
* "@context": "http://schema.org",
* "@type": "Person",
* "email": "mailto:john.doe@somedomain.com",
* "jobTitle": "Professor",
* "name": "John Doe",
* "telephone": "(555) 555-555"
* }
* ]
*/