Skip to content

Commit

Permalink
add vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
snapsnapturtle committed Aug 30, 2023
1 parent 6736c44 commit bd1888d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 10 deletions.
5 changes: 1 addition & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,5 @@
<br />
<p role="presentation">$ <span class="cursor cursor--blinking">&nbsp;</span></p>
</body>
<script>
window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
</script>
<script defer src="/_vercel/insights/script.js"></script>
<script defer type="module" src="./scripts/vercel-analytics.ts"></script>
</html>
29 changes: 23 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
"url": "https://github.com/snapsnapturtle/jonah.ml/issues"
},
"homepage": "https://github.com/snapsnapturtle/jonah.ml#readme",
"dependencies": {
"@vercel/analytics": "^1.0.2"
},
"devDependencies": {
"@parcel/transformer-inline-string": "^2.9.3",
"@parcel/transformer-sass": "^2.9.3",
Expand Down
3 changes: 3 additions & 0 deletions scripts/vercel-analytics.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { inject } from '@vercel/analytics';

inject();

0 comments on commit bd1888d

Please sign in to comment.