Get current state

Use this method to get the current state of tracking opt-out for the current user. Use this to check if a customer has opted out of tracking or not.

Get current state
Example
Get current state
ADDWISH_PARTNER_NS.api.user.get_tracking_optout(); // Returns a boolean

‚Äč

Example

Where optout is a boolean indicating if the user is currently opted out of tracking.

var optout = ADDWISH_PARTNER_NS.api.user.get_tracking_optout();