This component enables seamless integration between Edgee and Plausible, allowing you to collect and forward analytics events to your Plausible instance.
- Download the latest component version from our releases page
- Place the
plausible.wasm
file in your server (e.g.,/var/edgee/components
) - Add the following configuration to your
edgee.toml
:
[[components.data_collection]]
id = "plausible"
file = "/var/edgee/components/plausible.wasm"
# settings.instance_url = "https://plausible.io"
settings.domain = "YOUR_SITE_DOMAIN"
The component maps Edgee events to plausible Event as follows:
Edgee Event | plausible Event | Description |
---|---|---|
Page | pageview |
pageview event with url as property |
Track | Your event name | A event with your custom event name |
User | user |
Sets all the data for the user |
[[components.data_collection]]
id = "plausible"
file = "/var/edgee/components/plausible.wasm"
# settings.instance_url = "https://plausible.io"
settings.domain = "YOUR_SITE_DOMAIN"
Control which events are forwarded to plausible:
settings.edgee_page_event_enabled = true # Enable/disable page view tracking
settings.edgee_track_event_enabled = true # Enable/disable custom event tracking
settings.edgee_user_event_enabled = true # Enable/disable user identification
Prerequisites:
Build command:
edgee components build
Test commands:
edgee components test
cargo test
Test coverage command:
cargo llvm-cov --all-features
Interested in contributing? Read our contribution guidelines
Report security vulnerabilities to security@edgee.cloud