Require opt-in consent for website analytics and enquiry attribution - #213
Merged
Merged
Conversation
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
The public site loaded GA and TruConversion before visitors could choose. This repair keeps optional analytics off until explicit opt-in and adds accessible Allow analytics, Decline analytics and persistent Privacy choices controls. Revocation blocks collection and clears GA cookies; declined enquiries still submit without attribution or lead events. TruConversion is disabled pending verified input masking and revocation. Success messages now say submitted rather than implying inbox delivery.
Issue Or Context
0a05067and the live integration before edits. Fresh GA setup check confirms once-per-event, no default value and all three EVENT dimensions; no GA registrations/scopes were changed.Verification
docs/marketing/seo/follow-up-2026-09-21.md.Launch And Positioning Guardrails
No new product, competitor or customer claims. Provider acceptance remains distinct from inbox delivery and business qualification. No paid DataForSEO calls, secret values, private analytics records or reporting schedule changes.
Screenshots Or Recordings
Real 375px screenshot from the local production build:
Maintainer Review Notes
One bounded consent/attribution repair. Production deployment through existing authorized Coolify access and a safely classified real QA receipt/inbox match remain gates. Do not broaden token scopes or change pageview ownership. No new environment variable is needed for consent.
Merged revision and deployment outcome — September 21, 2026
Merged at 06:12 UTC as
c5ed952ab2da5595d4c51c088b5e0dc52d4cd82b. Main CI 35567462027 and security 35567462041 both passed.The existing deployment workflow 35567686623 passed the current-main and required-check gates, then stopped at 06:15:53 UTC on its first Coolify GET: HTTP 403 (API permission restriction). No hosting environment mutation or deployment request occurred. Inputs were contact attribution preserve and manual pageviews disable. Token scopes were not broadened.
Supervisor handoff: authenticated Coolify Root Team, marketing app
76d9ooqtvm1hl9tbzmza3few(quickvoice.co/www.quickvoice.co), deploy the merged revision above. KeepNEXT_PUBLIC_GA_MANUAL_PAGEVIEWS=false(build/runtime) and GA history measurement ON. Consent requires no new setting. Enable runtimeCONTACT_ATTRIBUTION_ENABLED=trueonly after verifying healthy compatible API appudefnayjdhyb2ketfxrbvwdqand matching existing webhook configuration. Preserve the existing GA ID and console URL. The full handoff is in the September 21 record.The repair is merged and locally verified, not verified live. Live homepage, contact, existing IVR, scheduling and multilingual routes returned HTTP 200; the sitemap still contains 101 URLs. The contact page still has the legacy tracker and no consent controls. A safely classified real enquiry with matched receipt and recipient inbox remains blocked by deployment/receiver verification. Intercepted QA is not counted as leads or inbox delivery. No private report schedule or OAuth grant changed; IVR content remains staged; zero paid DataForSEO calls.