plausible icon indicating copy to clipboard operation
plausible copied to clipboard

Heads up: Plausible site verification tool

Open aerosol opened this issue 8 months ago • 8 comments

Hey,

just wanted to notify you about a new feature we'll be soon introducing in Plausible - a site verification tool allowing you to verify the integration.

It will employ a headless agent that visits the site and seeks for window.plausible() function being defined.

The signature is plausible(eventName, options) where options must be able to accept a callback key with a value of function({status}) - status is the HTTP status of /api/events response. The agent will send a custom event using that function. Otherwise the verification will be marked as failing.

Our tracker has been updated accordingly, as well as the npm package. If you like the nuxt module to be verifiable, please consider applying similar changes.

Many thanks!

aerosol avatar May 27 '24 07:05 aerosol