<PlausibleAnalytics> initializes the Plausible tracker. It uses the same
configuration as the official Plausible.
<PlausibleAnalytics domain="yourapp.com" />Properties
You can find all supported properties on the Plausible NPM package reference page .
| Property | Value | Description |
|---|---|---|
domain | string | Your site’s domain as declared in Plausible settings. |
endpoint | string | Custom API endpoint. Defaults to |
autoCapturePageviews | boolean | Automatically capture pageviews. Defaults to |
hashBasedRouting | boolean | Enables hash-based routing support. Defaults to |
outboundLinks | boolean | Tracks outbound link clicks. Defaults to |
fileDownloads | boolean | { fileExtensions: string[] } | Tracks file downloads. Provide custom file extensions to override defaults. |
formSubmissions | boolean | Tracks form submissions. Defaults to |
captureOnLocalhost | boolean | Enables tracking on localhost. Defaults to |
logging | boolean | Logs ignored events. Defaults to |
customProperties | Record<string, string> | ((eventName: string) => Record<string, string>) | Custom properties to include with all events. |
transformRequest | (payload: PlausibleRequestPayload) => PlausibleRequestPayload | null | Transform or filter the request payload before sending it. |
bindToWindow | boolean | Whether to bind |