Consent Mode
Control when Hardal forwards events to destinations based on user consent.
Marketing destinations have Consent Mode on by default. When enabled, Hardal only forwards events that include consent: "true" in their payload. Events without it still reach Hardal for your dashboards and analytics — they just don't get forwarded to destinations with Consent Mode enabled.
Default states
- Marketing destinations (Meta, TikTok, Snapchat, LinkedIn, Pinterest, Reddit) — on by default
- Analytics destinations (GA4 and others) — on by default
- Custom Webhooks — off by default
Sending consent
Include consent: "true" in your event payload when the user has granted tracking consent:
hardal.track("purchase", {
revenue: 149.90,
currency: "TRY",
order_id: "ORD-456",
consent: "true"
});
Toggling per destination
Open destination settings (⚙️) → Advanced tab → toggle Consent Mode on or off → Save.
Turning off Consent Mode on a Marketing destination means all events get forwarded regardless of consent status. Only do this if your regional regulations allow it.
Common patterns
EU / Turkey e-commerce: Keep defaults. Pass consent: "true" only after the user accepts your consent banner.
Internal webhook: Consent Mode is off by default for webhooks. Toggle it on if the webhook forwards data to a third-party system that requires consent.