mirror of
https://github.com/Alee14/personal-website.git
synced 2025-01-22 10:51:50 -05:00
Using Vercel's proxy for analytics
This commit is contained in:
parent
b2ed99705f
commit
c71f383021
2 changed files with 13 additions and 1 deletions
|
@ -38,7 +38,7 @@ const date = new Date();
|
|||
|
||||
<!-- Plausible Analytics -->
|
||||
|
||||
<script defer data-domain="alee14.me" src="https://stats.alee14.me/js/script.file-downloads.outbound-links.js"></script>
|
||||
<script defer data-domain="alee14.me" data-api="/plausible/api/event" src="/plausible/js/script.js"></script>
|
||||
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
|
||||
|
||||
<ClientRouter fallback="animate" />
|
||||
|
|
12
vercel.json
Normal file
12
vercel.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/plausible/js/script.js",
|
||||
"destination": "https://stats.alee14.me/js/script.file-downloads.outbound-links.js"
|
||||
},
|
||||
{
|
||||
"source": "/plausible/api/event",
|
||||
"destination": "https://stats.alee14.me/api/event"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue