Skip to main content

URL

get

URL getter that returns the URL used by the web SDK to describe all data events collected for this app and for Guide requests. This URL can differ from the browser's URL based on customizations made by the host application. The URL customizations can be learned about here.

Example

var url = pendo.url.get();

getNormalizedUrl() ⇒ string

Returns the normalized URL sent from the backend. This won't always match the desired output from the customer's URL customizations if using the location API.

Returns: string - URL

pageLoad([url]) ⇒ boolean | undefined

Registers a new load event. Collects only if the URL has changed.

Returns: boolean | undefined - true if the URL changed and a load event was sent, otherwise undefined

ParamTypeDescription
[url]stringif not provided, defaults to the current URL from the browser

Example

pendo.pageLoad()