Skip to content

Commit fcc878d

Browse files
committed
wip: allow localhost tracking
Need to use `.local` to the script URL ; found it by looking at the old version of the documentation, changed by this PR plausible/docs#614 I’ve also created a new temporary “data-domain”, so that we can test stuff without impacting the production stats. Ideally, the data-domain and the script url would change depending on whether we are in dev or production mode (using the NODE_ENV value ?)
1 parent 0a9b5a5 commit fcc878d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<link rel="stylesheet" href="./public/icomoon/style.css">
1515
<link rel="stylesheet" href="./styles.scss">
1616
<script type="module" src="index.js"></script>
17-
<script defer data-domain="ecobalyse.beta.gouv.fr" src="https://s.ecobalyse.incubateur.net/js/script.file-downloads.hash.outbound-links.pageview-props.tagged-events.js"></script>
17+
<script defer data-domain="ecobalyse.test" src="https://s.ecobalyse.incubateur.net/js/script.file-downloads.hash.outbound-links.pageview-props.tagged-events.local.js"></script>
1818
</head>
1919
<body>
2020
<noscript>

0 commit comments

Comments
 (0)