1
0
Fork 0
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:
Lukas Winkler 2023-04-22 00:26:28 +02:00
parent eda41aac10
commit 0a2a2cb305
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -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