@beavercodeco/logjam
v1.1.0
Published
Client SDK for Log Jam by Beaver Code Co.
Downloads
401
Maintainers
Readme
Log Jam by Beaver Code Co.
Installation
Vanilla Javascript
To your index.html
add the following script tag in the <head>
section:
<head>
...
<script src="https://cdn.danielkarl.com/logjam.js"></script>
...
</head>
That's all. Now you can browse site traffic using this link:
https://danielkarl.com/cgi-bin/analytics.py?domain={YOUR_DOMAIN}
Frameworks (React, Svelte, etc.)
npm install --save-dev `@beavercodeco/logjam
Svelte
In src/routes/+page.svelte
:
import {onMount} from 'svelte';
import logjam from '@beavercodeco/logjam';
onMount(() => {
logjam(); // call logjam
});