getCurrentUrl
The getCurrentUrl() method returns the URL of the currently tracked page, either from the address bar or as set by the setCustomUrl() method.
Syntax
getCurrentUrl()Not availableNot availableNot availableNot availableNot availableNot availableReturns
The current page URL.
Format: Example: https://example.com/blog
Type: string
Examples
To get the current page URL:
_paq.push([function () {
console.log(this.getCurrentUrl());
}]);Not availableNot availableNot availableNot availableNot availableNot availableA sample of the return statement:
https://example.com/blog
Related methods
Updated about 2 months ago