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.
ADDWISH_PARTNER_NS.api.user.get_tracking_optout(); // Returns a boolean
optout is a boolean indicating if the user is currently opted out of tracking.
var optout = ADDWISH_PARTNER_NS.api.user.get_tracking_optout();