Add Gizmo Analytics provider#207
Open
sudomichael wants to merge 1 commit into
Open
Conversation
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 detectedLatest commit: 8bd6ace The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Gizmo Analytics as a new provider in the
Analyticscomponent, 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>withdata-keyderived from the public site key (ak_public_…).srcdefaults tohttps://gizmoanalytics.io/script.js, overridable for self-host scenarios.packages/pliny/src/analytics/index.tsx— registeredgizmoAnalyticsinAnalyticsConfig, wired the conditional render inAnalytics, re-exportedGizmo+GizmoProps.README.md— added Gizmo to the providers list..changeset/add-gizmo-analytics.md— minor version bump.Test plan
yarn buildsucceeds (verified locally)Usage example
I'd be happy to follow up with a complementary PR against tailwind-nextjs-starter-blog to add the
gizmoAnalyticsblock todata/siteMetadata.jsonce this is merged — let me know if you'd like that as a separate PR or bundled.