Skip to content

Conversation

vachmara
Copy link
Contributor

@vachmara vachmara commented Sep 11, 2025

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This pull request adds support for the Databuddy Analytics integration to the scripts registry, including a new composable for Nuxt apps, schema validation, and full documentation. The main changes are the addition of the registry entry, implementation of the integration logic, and comprehensive usage docs.

Databuddy Analytics Integration

  • Added a new registry entry for Databuddy Analytics in the scripts registry, including label, category, logo, and import path for the composable.
  • Implemented the useScriptDatabuddyAnalytics composable in databuddy-analytics.ts, providing schema validation, script injection, and a typed API for interacting with Databuddy Analytics.

Documentation

  • Added a new documentation page at docs/content/scripts/analytics/databuddy-analytics.md with setup instructions, usage examples, config schema, and API reference for Databuddy Analytics.

Copy link

vercel bot commented Sep 11, 2025

@vachmara is attempting to deploy a commit to the Nuxt Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

pkg-pr-new bot commented Sep 11, 2025

Open in StackBlitz

npm i https://pkg.pr.new/nuxt/scripts/@nuxt/scripts@495

commit: d5696a9

@izadoesdev
Copy link

LGTM

@harlan-zw harlan-zw merged commit cdc2b98 into nuxt:main Sep 18, 2025
3 of 5 checks passed
@harlan-zw
Copy link
Collaborator

Awesome work, thank you for the contribution 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants