GDPR & Consent

This public guide explains how Attriax handles GDPR consent state, when tracking is held, and where each SDK exposes the same regulation-scoped helper.

How the shared GDPR flow works

The goal is to keep one consent model across Flutter, web, React, and Unity so teams do not need different product rules per platform.

Hou GDPR-beheerde werk

Wag vir toestemming

Gebruik hierdie toestand om toeskrywing, ontleding en advertensiegeleentheidswerk plaaslik te hou totdat u toestemmingskoppelvlak die besluit oplos.

Volg gestoorde waardes

Toegestaan of geweier per kategorie

Attriax pas die ontledings-, toeskrywings- en advertensiegeleentheidswaardes toe wat u deur die gedeelde GDPR-helperoppervlak stoor.

Hervat normale aflewering

Nie vereis nie

Gebruik die uitdruklike nie-vereiste pad wanneer GDPR nie van toepassing is op die huidige gebruiker of sessie nie.

Recommended flow

  • Aktiveer die regulasie-gebonde GDPR-helper in u SDK-konfigurasie voordat u die privaatblad of die inwydingstoestemmingstap vertoon.
  • Lees eers die plaaslike toestand sodat die koppelvlak kan besluit of dit nog "n GDPR-antwoord vir hierdie toestel of sessie nodig het.
  • Stoor die finale besluit met die GDPR-helper in plaas van "n eie skadustoetemmingswinkel vir Attriax te skep.
  • Heropen dieselfde helper vanuit instellings wanneer die gebruiker later sy privaatheidsbesluit verander.

Runtime behavior

  • Terwyl die besluit nog hangende is, bly GDPR-beheerde opsporing plaaslik in plaas van onmiddellik gestuur te word.
  • Toegestane besluit ontsluit die kategoriee wat u goedgekeur het en hou geweierdes geblokkeer.
  • As GDPR nie vereis word vir die huidige gebruiker of sessie nie, merk dit uitdruklik sodat normale aflewering kan voortgaan sonder om te raai.

Public SDK entry points

Each public SDK guide goes deeper on initialization, but the consent model below stays aligned across the runtime surfaces.

Flutter

Flutter is die verwysingslooptyd. Begin hier wanneer u die duidelikste siening van die gedeelde toestemmingsmodel benodig.

SDK docs

Dart

1final needsConsent = await attriax.consent.gdpr.needsConsent(
2  localOnly: true,
3);
4
5if (needsConsent) {
6  attriax.consent.gdpr.setConsent(
7    analytics: true,
8    attribution: true,
9    adEvents: false,
10  );
11} else {
12  attriax.consent.gdpr.setNotRequired();
13}

Web / JS

Die blaaier-SDK behou dieselfde geneste consent.gdpr-helper en besluitmodel as die mobiele verwysingpad.

SDK docs

TypeScript

1const needsConsent = await attriax.consent.gdpr.needsConsent({
2  localOnly: true,
3});
4
5if (needsConsent) {
6  attriax.consent.gdpr.setConsent({
7    analytics: true,
8    attribution: true,
9    adEvents: false,
10  });
11} else {
12  attriax.consent.gdpr.setNotRequired();
13}

React

React behou die blaaier-looptyd-toestemmingsoppervlak en is die beste geskik vir geroeteerde SPA-vloeie met "n gedeelde verskaffer.

SDK docs

TSX

1const { attriax } = useAttriax();
2
3async function resolveConsent() {
4  const needsConsent = await attriax.consent.gdpr.needsConsent({
5    localOnly: true,
6  });
7
8  if (!needsConsent) {
9    attriax.consent.gdpr.setNotRequired();
10    return;
11  }
12
13  attriax.consent.gdpr.setConsent({
14    analytics: true,
15    attribution: true,
16    adEvents: false,
17  });
18}

Unity

Unity weerspieel dieselfde GDPR-vloei onder Attriax.Consent.Gdpr met C#-benaming en asinkrone kontroles.

SDK docs

C#

1var needsConsent = await _attriax.Consent.Gdpr.NeedsConsentAsync(localOnly: true);
2
3if (needsConsent)
4{
5    _attriax.Consent.Gdpr.SetConsent(
6        analytics: true,
7        attribution: true,
8        adEvents: false);
9}
10else
11{
12    _attriax.Consent.Gdpr.SetNotRequired();
13}

Where to go next

Use the public docs when you need the shared model, then open the project workspace when the answers become project-specific.

Public docs are best for

  • Choosing the right SDK surface before implementation starts.
  • Understanding when Attriax buffers or resumes GDPR-gated work.
  • Sharing a lightweight consent overview with product, QA, or legal stakeholders.

Project workspace is best for

  • Project-specific disclosure work, diagnostics, and exact release settings.
  • Validating how your enabled modules affect privacy and store-submission answers.
  • Reviewing the richer signed-in GDPR guide beside your project configuration.