Skip to content

Let integrations turn off event tracking - #106

Open
anyelopetit wants to merge 1 commit into
mainfrom
feat/optional-tracking
Open

anyelopetit wants to merge 1 commit into
mainfrom
feat/optional-tracking

Conversation

@anyelopetit

@anyelopetit anyelopetit commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Part of hellotext/hellotext#6943.

Why

BigCommerce gates every storefront script by the shopper's cookie consent. A shopper may accept functional cookies (webchat, WhatsApp widget) but refuse analytics. Today the SDK has no way to keep those widgets running without also sending events.

What changes

A new tracking option, true by default:

Hellotext.initialize('BUSINESS_ID', { tracking: false })

With tracking: false, Hellotext.track returns without sending anything. Popups, webchat, the WhatsApp widget, forms and Push keep working. Every other integration keeps today's behavior because the default does not change.

Used by

The BigCommerce storefront script (hellotext/bigcommerce) starts the SDK once with tracking set to whether the shopper accepted analytics.

Release

Publish a minor version (3.2.0) before hellotext/hellotext#6990 is deployed, since the BigCommerce script passes this option.

Tests

New case in __tests__/hellotext_test.js. The full suite passes (1176 tests). README and index.d.ts list the option. lib and dist are rebuilt from a fresh yarn install --frozen-lockfile.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T21:27:37.581829Z 9936f63 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@anyelopetit anyelopetit self-assigned this Nov 11, 2026
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