setDocumentTitle
The setDocumentTitle() method overrides the current page title. The custom page title will be set until the visitor reloads the page. This method doesn't change the title in the visitor's browser, only in the reporting in Piwik PRO.
Syntax
setDocumentTitle(title)
Not available
Not available
Not available
Not available
Not available
Not available
Parameters
title (string, required)
The page title that will override the current page title.
Examples
To set the page title as Home page | Clear Bank
:
_paq.push(["setDocumentTitle", "Home page | Clear Bank"]);
Not available
Not available
Not available
Not available
Not available
Not available
To set the current page title in lowercase:
_paq.push(["setDocumentTitle", document.title.toLocaleLowerCase()]);
Not available
Not available
Not available
Not available
Not available
Not available
Related methods
Updated 6 days ago