Opt-out API
IntermediateAn opt-out API is a mechanism that stops tracking a user who has declined; from that moment no event is created or sent for that user.
An opt-out API is the bridge between the user's decision and the code's actual behavior; a consent notice on the page means something only when a technical mechanism truly switches collection off. The key point is that a correct opt-out should take effect before any collection, not collect data and then discard it; stopping at the source is not the same, privacy-wise, as deleting at the destination. A subtle point is the persistence of the decision: if the user declines but the choice is not stored, they are tracked again on the next visit and the consent is meaningless. Opt-out should not be confused with data deletion; opt-out stops future collection, while data already collected is erased by a user-data-deletion request, which is a separate call.