> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: siteSeo.setMetaTags(metaTags: Array) # Method Link: https://dev.wix.com/docs/sdk/frontend-modules/seo/set-meta-tags.md # Method Description: 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: ```javascript { "property": "og:image", "content": "https://.../Wix+logo.jpg" } ``` Produces: ```html ``` When setting `og:image` meta tags, the `content` can be and external image URL or a Media Manager image URL as described [here](https://dev.wix.com/docs/velo/api-reference/$w/image/src.md). 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()`](#setTitle) function instead. > > * You should always set the `metaTags` inside the [`onReady()`](https://dev.wix.com/docs/velo/api-reference/$w/on-ready.md) event handler to ensure search engines can read it. # Method Permissions: # Method Permissions Scopes IDs: undefined # Method Code Examples: ## Set a page's meta tags ```javascript import { seo } from '@wix/site-seo'; // ... $w.onReady( () => { seo.setMetaTags( [ { "name": "robots", "content": "noindex" }, { "property": "og:image", "content": "wix:image://v1/6...2.jpg/a.jpg#originWidth=970&originHeight=120" } ] ) .then( () => { console.log("meta tags set"); } ) .catch( () => { console.log("failed setting meta tags"); } ); } ); ```