Skip to content

Add Gizmo Analytics provider#207

Open
sudomichael wants to merge 1 commit into
timlrx:mainfrom
sudomichael:add-gizmo-analytics
Open

Add Gizmo Analytics provider#207
sudomichael wants to merge 1 commit into
timlrx:mainfrom
sudomichael:add-gizmo-analytics

Conversation

@sudomichael
Copy link
Copy Markdown

Summary

Adds Gizmo Analytics as a new provider in the Analytics component, following the same shape as the existing six (Plausible, Umami, Simple Analytics, Posthog, Google Analytics, Microsoft Clarity).

Gizmo is cookieless and GDPR-friendly — no cookies, no localStorage, no fingerprinting, no consent banner required under CNIL / EDPB guidance. Free tier is 10k events/month with unlimited sites, so it's a natural fit for static blogs / content sites using this kit.

Changes

  • packages/pliny/src/analytics/Gizmo.tsx — single <Script> with data-key derived from the public site key (ak_public_…). src defaults to https://gizmoanalytics.io/script.js, overridable for self-host scenarios.
  • packages/pliny/src/analytics/index.tsx — registered gizmoAnalytics in AnalyticsConfig, wired the conditional render in Analytics, re-exported Gizmo + GizmoProps.
  • README.md — added Gizmo to the providers list.
  • .changeset/add-gizmo-analytics.md — minor version bump.

Test plan

  • yarn build succeeds (verified locally)
  • No new dependencies
  • Provider follows the same prop / src override pattern as Umami / Plausible

Usage example

const analytics: AnalyticsConfig = {
  gizmoAnalytics: {
    gizmoPublicKey: 'ak_public_…', // from gizmoanalytics.io site settings
  },
}

I'd be happy to follow up with a complementary PR against tailwind-nextjs-starter-blog to add the gizmoAnalytics block to data/siteMetadata.js once this is merged — let me know if you'd like that as a separate PR or bundled.

Gizmo is a cookieless, GDPR-friendly web analytics service. No
cookies, no localStorage, no fingerprinting → no consent banner
required. https://gizmoanalytics.io

- New `Gizmo.tsx` component following the same shape as the
  existing providers — single Script tag with `data-key` derived
  from the public site key (`ak_public_…`). `src` defaults to
  the hosted CDN, overridable for self-host scenarios.
- Registered `gizmoAnalytics` in `AnalyticsConfig`, wired the
  conditional render in `Analytics`, re-exported `Gizmo` +
  `GizmoProps`.
- README provider list updated.
- Changeset for a minor version bump.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 19, 2026

🦋 Changeset detected

Latest commit: 8bd6ace

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
pliny Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

1 participant