mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 06:37:18 +01:00
Fix links.
This commit is contained in:
parent
7450b76e6d
commit
70ef857dc7
4 changed files with 10 additions and 5 deletions
|
|
@ -2,7 +2,11 @@ import { TextArea } from 'react-basics';
|
|||
import { TRACKER_SCRIPT_URL } from 'lib/constants';
|
||||
|
||||
export default function TrackingCode({ websiteId }) {
|
||||
const code = `<script async src="${TRACKER_SCRIPT_URL}" data-website-id="${websiteId}"></script>`;
|
||||
const url = TRACKER_SCRIPT_URL.startsWith('http')
|
||||
? TRACKER_SCRIPT_URL
|
||||
: `${location.origin}${TRACKER_SCRIPT_URL}`;
|
||||
|
||||
const code = `<script async src="${url}" data-website-id="${websiteId}"></script>`;
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue