Skip to content

Commit f234aaa

Browse files
committed
Proxy Plausible snippet
1 parent 437ec3a commit f234aaa

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ serve: ## serve site from output/
1717
poetry run python -m http.server 8765 -d output
1818

1919
netlify: ## publish on Netlify
20-
python3 -m pip install poetry && poetry env use 3 && poetry install && make build
20+
python3 -m pip install poetry && poetry env use 3 && poetry install && make build && cp _redirects output/.

_redirects

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/js/script.js https://plausible.io/js/script.js 200
2+
/api/event https://plausible.io/api/event 200

templates/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<link rel="stylesheet" type="text/css" href="/assets/style/style.css">
3030

3131
<!-- Plausible Analytics -->
32-
<script defer data-domain="socalpython.org" src="https://plausible.io/js/script.js"></script>
32+
<script defer data-domain="socalpython.org" src="/js/script.js"></script>
3333
</head>
3434
<body>
3535
<div class="wrapper">

0 commit comments

Comments
 (0)