Skip to content

Commit c706799

Browse files
authored
fix: correct GoatCounter pageviews extraction (#2420)
1 parent 18c48b4 commit c706799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/pageviews/goatcounter.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
fetch(url)
1111
.then((response) => response.json())
1212
.then((data) => {
13-
const count = data.count.replace(/\s/g, '');
13+
const count = data.count.replace(/\D/g, '');
1414
pv.innerText = new Intl.NumberFormat().format(count);
1515
})
1616
.catch((error) => {

0 commit comments

Comments
 (0)