mirror of
https://github.com/Findus23/MatomoLiteTracker.git
synced 2024-09-19 16:03:45 +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
|
useSendBeacon: boolean = false
|
||||||
performanceMetric?: PerformanceMetric
|
performanceMetric?: PerformanceMetric
|
||||||
userID?: string
|
userID?: string
|
||||||
|
customURL?: string
|
||||||
browserFeatures?: BrowserFeatures
|
browserFeatures?: BrowserFeatures
|
||||||
customDimensions?: CustomDimensions
|
customDimensions?: CustomDimensions
|
||||||
requestMethod: "GET" | "POST" = "GET"
|
requestMethod: "GET" | "POST" = "GET"
|
||||||
|
@ -136,7 +137,7 @@ export class MatomoLiteTracker {
|
||||||
h: now.getHours(),
|
h: now.getHours(),
|
||||||
m: now.getMinutes(),
|
m: now.getMinutes(),
|
||||||
s: now.getSeconds(),
|
s: now.getSeconds(),
|
||||||
url: getCurrentURL(),
|
url: this.customURL ? this.customURL : getCurrentURL(),
|
||||||
send_image: 1
|
send_image: 1
|
||||||
}
|
}
|
||||||
const referrer = documentAlias.referrer
|
const referrer = documentAlias.referrer
|
||||||
|
|
Loading…
Reference in a new issue