Product Profile Tracking
Opt Out Tracking
Option: opt_out_tracking
Type: Boolean
Default: false
Description:
Allows you to opt a user out of tracking based on cookie consent or privacy preferences.
When enabled, tracking-related data will not be collected for the session.
This is typically triggered after a user declines cookies or opts out via a privacy control.
Example:
$(%DIV_ELEMENT%).preferabliPD({
...configuration_settings,
opt_out_tracking: true, // disable tracking on initialization
});
//
$(BUTTON).on('click', function() {
$(%DIV_ELEMENT%).preferabliPD('optOutTracking', false); // to enable tracking after accepted cookies
});Notes:
- Can be toggled dynamically after initialization
- Recommended to integrate with your site's cookie consent manager
- Applies to all instances of Preferabli Widgets
Updated about 2 hours ago
Did this page help you?
