Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
EventData = {
  category: 'AdConsent',
  action: '',
  label: '',
  value: '',
  nonInteraction: true
}COPY

EventData.action

The consent region of this event:

...

  • User interface events

    • 'GuiShow' - User interface is open. This does not include the USP notice link.

    • ‘GuiSubmit'GuiSubmit' - User submits it its settings, the following consent event will show the users user’s choice.

  • Consent events

    • 'FullConsent' - Vendors have full consent

    • 'PublisherFullConsent' - Publisher has full consent

    • 'PartialConsent' - Vendors have partial consent

    • 'PublisherPartialConsent' - Publisher has partial consent

    • 'NoConsent' - Vendors have no consent

    • 'PublisherNoConsent' - Publisher has no consent

  • Others

    • 'GooglePurposeOneMissing' - Google does not have purpose 1 or vendor consent and will not deliver ads

    • 'Reconsider' - The reconsider timeout triggered, see reconsiderConsent

    • 'Error...' - Error events starting with Error and showing specific errors

...

The analytics functionality is used to observe and track users' behavior with the AdConsent consent management.
It support supports Google Analytics analytics.js and gtag.js by default. If you choose to use Google Analytics with custom names or an entirely different analytic system, you can pass a custom callback to convert analytic events to the format of your choice. See the examples section for use cases.

Scope

The function must be called before AdConsent start, i.e. in the stub. Calls after AdConsent is started will be ignored.

GDRP analytic event flow

Code Block
User visits pageConsent given?Full consent?FullConsentPublisherFullConsent (optional)Partial consent?PartialConsentPublisherPartialConsent (optional)GooglePurposeOneMissing (optional)Reconsider?ReconsiderGuiShowGuiSubmitNoConsentPublisherNoConsent (optional)GooglePurposeOneMissingyesnoyesnoyesnoyes

Drawio
mVer2
zoom1
simple0
inComment0
pageId668237986
custContentId668270787
lbox1
diagramDisplayNameUntitled Diagram-1672431241441.drawioGDPR_analytic_event_flow
contentVer17
revision17
baseUrlhttps://snigelweb.atlassian.net/wiki
diagramNameUntitled Diagram-1672431241441.drawio
pCenter0
width320.99999999999994705
links
tbstyle
height750.0000000000002954

CCPA analytic event flow

Note that GuiShow can happen multiple times before a user decides to submit consent settings triggering GuiSubmit. This means that GuiShow in the CCPA region should not be used to measure the acceptance rate.

Code Block
User visits pageConsent given?Full consent?FullConsentNoConsentGooglePurposeOneMissingFullConsentClick privacy linkGuiShowPage action?GuiSubmityesnoyesnoyesno

Insert new CCPA analytic flowchart

No privacy region analytic event flow

Code Block
User visits pageFullConsent

Insert no GDPR region flowchart

Drawio
mVer2
zoom1
simple0
inComment0
pageId668237986
custContentId668959441
lbox1
diagramDisplayNameCCPA_analytic_event_flow
contentVer5
revision5
baseUrlhttps://snigelweb.atlassian.net/wiki
diagramNameCCPA_analytic_event_flow
pCenter0
width411.5
links
tbstyle
height865

No privacy region analytic event flow

Drawio
mVer2
zoom1
simple0
inComment0
pageId668237986
custContentId668697299
lbox1
diagramDisplayNameNo_privacy_region_analytic_event_flow
contentVer2
revision2
baseUrlhttps://snigelweb.atlassian.net/wiki
diagramNameNo_privacy region_analytic_event_flow
pCenter0
width121
links
tbstyle
height134

Examples

Google Analytics with automatic API detection

Requires analytics.js or gtag.js to be loaded and either the tag ga or gtag must be defined.

...