isEditorLoggedIn()

Indicates whether a Scrivito UI is present and an editor is logged in.

Params

None

Returns

Boolean – true if the app is rendered inside the Scrivito UI, otherwise false.

Example

This method can be used to prevent that page access is tracked in editing mode. The code below exemplifies this for a GoogleAnalytics component – note the immediate return in componentDidMount.