Skip to content

Conversation

@jensmeichler
Copy link
Contributor

This may be necessary in case a cookie consent changes and no tracking event should be dispatched anymore. This would allow it to keep the logic therefore in the client and not having to do this check before each call.

This may be necessary in case a cookie consent changes and no tracking event should be dispatched anymore. This would allow it to keep the logic therefore in the client and not having to do this check before each call.
Copilot AI review requested due to automatic review settings October 9, 2025 10:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds the ability to update the sendTrackingEvents option dynamically through the setClientOptions method. This allows clients to control tracking event dispatch based on runtime conditions like cookie consent changes without requiring checks before each tracking call.

  • Added sendTrackingEvents parameter to setClientOptions method
  • Updated JSDoc documentation to include the new parameter
  • Implemented conditional assignment logic for the new option

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@esezen esezen merged commit 2321ab1 into Constructor-io:master Oct 13, 2025
@jensmeichler jensmeichler deleted the update-tracking-event-dispatching-on-cookie-consent-change branch October 13, 2025 14:58
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.

2 participants