Plausible Analytics
Plausible Analytics is a simple, and privacy-friendly
Google Analytics Alternative. The destination sends events to Plausible via
the plausible
function.
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.
Custom Config
Result
Custom
Property | Type | Description |
---|---|---|
domain | string | The domain of your site as registered in Plausible |
Mapping
Send custom events manually using the JavaScript function
CustomEvent
Event
Custom Config
Result
Purchase
Follow
the Ecommerce
revenue tracking guide to setup the purchase
event.
Event
Custom Config
Result
info
If you need professional support with your walkerOS implementation, check out our services.