---
title: "Plausible Analytics"
description: "Use Plausible Analytics in your Nuxt app."
canonical_url: "https://scripts.nuxt.com/scripts/plausible-analytics"
last_updated: "2026-05-03T02:50:03.380Z"
---

[Plausible Analytics](https://plausible.io/) is a privacy-friendly analytics solution for Nuxt Apps, allowing you to track your website's traffic without compromising your users' privacy.

<script-stats>



</script-stats>

<script-docs>



</script-docs>

### Self-hosted Plausible

If you use a self-hosted version of Plausible, provide an explicit src for the script so that the browser sends API events to the correct endpoint.

```ts
useScriptPlausibleAnalytics({
  scriptInput: {
    src: 'https://my-self-hosted-plausible.io/js/script.js'
  }
})
```

**Note:** Find the `scriptId` in your Plausible dashboard under **Site Installation** in your site settings.

**Extracting your Script ID:**

Plausible provides you with a script tag like this:

```html
<script async src="https://plausible.io/js/pa-gYyxvZhkMzdzXBAtSeSNz.js"></script>
```

Your `scriptId` is the part after `pa-` and before `.js`:

```ts
scriptId: 'gYyxvZhkMzdzXBAtSeSNz'
//         ^^^^^^^^^^^^^^^^^^^^^^^
//         Extract from: pa-{scriptId}.js
```

<script-types>



</script-types>
