Plausible Analytics
Plausible Analytics is a simple, and privacy-friendly Google Analytics Alternative.
Installation
- TypeScript
- Script
- Code
Install the destination via npm
npm i @elbwalker/destination-web-plausible
import { elb } from '@elbwalker/walker.js';
import destinationPlausible from '@elbwalker/destination-web-plausible';
elb('walker destination', destinationPlausible, config);
Load the destination via dynamic import
<script>
// Upload the dist/index.mjs on your own server
const destination = (
await import(
'https://cdn.jsdelivr.net/npm/@elbwalker/destination-web-plausible/dist/index.mjs'
)
).default;
elb('walker destination', destination, config);
</script>
Copy the code from the index.browser.js file
(function () {
'use strict';
var Destination = (() => {})(); // This is the copied code
elb('walker destination', Destination.default, config);
})();
Configuration
Configure your Plausible destination.
Example
const config = {
custom: {
domain: 'elbwalker.com', // Optional, domain of your site as registered
},
};
Custom
Property | Type | Description |
---|---|---|
domain | string | The domain of your site as registered in Plausible |
info
If you need professional support with your walkerOS implementation, check out our services.