mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 04:25:39 +01:00
Fix track script regex match, argument and receiver were swapped
This commit is contained in:
parent
ef2d56fc78
commit
6361ac892b
1 changed files with 2 additions and 2 deletions
|
|
@ -42,9 +42,9 @@
|
||||||
|
|
||||||
const getPageviewEventData = () => Object.fromEntries(
|
const getPageviewEventData = () => Object.fromEntries(
|
||||||
[...currentScript.attributes]
|
[...currentScript.attributes]
|
||||||
.filter(attribute => pageviewCustomPropertyRegex.match(attribute.name))
|
.filter(attribute => attribute.name.match(pageviewCustomPropertyRegex))
|
||||||
.map(attribute => {
|
.map(attribute => {
|
||||||
const match = pageviewCustomPropertyRegex.match(attribute.name);
|
const match = attribute.name.match(pageviewCustomPropertyRegex);
|
||||||
return [match[1], attribute.value]
|
return [match[1], attribute.value]
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue