mirror of
https://github.com/Findus23/MatomoLiteTracker.git
synced 2024-09-08 03:13:44 +02:00
support custom URL
This commit is contained in:
parent
eda41aac10
commit
0a2a2cb305
1 changed files with 2 additions and 1 deletions
|
@ -117,6 +117,7 @@ export class MatomoLiteTracker {
|
|||
useSendBeacon: boolean = false
|
||||
performanceMetric?: PerformanceMetric
|
||||
userID?: string
|
||||
customURL?: string
|
||||
browserFeatures?: BrowserFeatures
|
||||
customDimensions?: CustomDimensions
|
||||
requestMethod: "GET" | "POST" = "GET"
|
||||
|
@ -136,7 +137,7 @@ export class MatomoLiteTracker {
|
|||
h: now.getHours(),
|
||||
m: now.getMinutes(),
|
||||
s: now.getSeconds(),
|
||||
url: getCurrentURL(),
|
||||
url: this.customURL ? this.customURL : getCurrentURL(),
|
||||
send_image: 1
|
||||
}
|
||||
const referrer = documentAlias.referrer
|
||||
|
|
Loading…
Reference in a new issue