Skip to main content

XGENIA.SEO

The XGENIA.SEO API lets you change metatags and document titles without directly accessing the window object, this is required for server-side rendering where we don't have a window.

info

All of this is only available on the frontend.

Reference​

XGENIA.SEO.setTitle(value)​

This function updates the window title.

XGENIA.SEO.meta​

Get all the metatags that is currently used.

XGENIA.SEO.clearMeta()​

Clear all the metatags that currently exist.

XGENIA.SEO.getMeta(key)​

Get a specific metatag by key.

XGENIA.SEO.setMeta(key, value)​

Set a metatag with key and value.