---
title: "Databuddy Analytics"
description: "Load Databuddy's browser SDK and configure its analytics and performance tracking."
canonical_url: "https://scripts.nuxt.com/scripts/databuddy-analytics"
last_updated: "2026-08-10T04:32:13.559Z"
---

[Databuddy](https://www.databuddy.cc/docs/getting-started) provides web analytics, error tracking, and performance measurements through a browser SDK.

<script-stats>



</script-stats>

<script-docs>



</script-docs>

## CDN or self-hosted

By default, the registry injects the [documented browser SDK](https://www.databuddy.cc/docs/sdk/vanilla-js) from `https://cdn.databuddy.cc/databuddy.js`. If you host the script yourself, pass `scriptUrl` to override the `src`.

```ts
useScriptDatabuddyAnalytics({
  scriptUrl: 'https://my-host/databuddy.js',
  clientId: 'YOUR_CLIENT_ID',
})
```

<callout color="amber">

First-party bundling rewrites the script URL, so the current integration also creates `window.databuddyConfig`. That fallback contains `clientId` plus truthy values for `apiUrl`, `disabled`, `trackScreenViews`, `trackPerformance`, and `trackSessions`. Other options remain only as `data-*` attributes, and explicit `false` values for those three tracking fields are not copied to the fallback config. Disable bundling if the bundled SDK does not apply the setting you need.

</callout>

<script-types>



</script-types>
