mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Only display first tracker script name.
This commit is contained in:
parent
6c09dd1e23
commit
223f0051ed
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ export function TrackingCode({ websiteId }) {
|
|||
const { trackerScriptName } = useConfig();
|
||||
const url = trackerScriptName.startsWith('http')
|
||||
? trackerScriptName
|
||||
: `${location.origin}/${trackerScriptName}.js`;
|
||||
: `${location.origin}/${trackerScriptName?.split(',')?.map(n => n.trim())?.[0]}`;
|
||||
|
||||
const code = `<script async src="${url}" data-website-id="${websiteId}"></script>`;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue