Consent
Track visitor consent to Converge
Overview
You can configure how the Converge connections should behave based on the visitor’s consent preferences. To set this up, you need to send the consent to Converge.
You still need a CMP, cookie banner provider, or your own solution to collect the preference.
While this allows you to configure how connections handle consent, regardless of the configured consent, events will still be sent to Converge.
The consent method
The cvg
object has a consent
method that you can use to send the visitor’s consent preferences to Converge.
It takes two arguments, we recommend always sending both.
analytics
: Preference for analytics tracking. Possible values aregranted
, anddenied
. If not set, Converge will assume that the visitor hasdenied
consent.marketing
: Preference for marketing tracking. Possible values aregranted
, anddenied
. If not set, Converge will assume that the visitor hasdenied
consent.
See the examples below.
You need to make sure the cvg
object is available before you call the consent
method.
If this is not the case, include the following snippet before calling cvg
.
Storing consent
Consent should be sent every time the user visits the page. Typically, you will rely on your CMP or own cookie banner implementation to retrieve the visitor’s consent and send it to Converge.
Converge stores the consent preferences in the visitor’s browser as a backup. But, to make sure that it is up-to-date, you should still specify it every time the converge snippet loads.
The preferences are also stored on the Converge profile, under the profile_properties
.
This is used to filter events when forwarding server-side.
Sending consent
When Converge has not received any consent preferences, we will default to denied
consent.
For that reason, we recommend calling the consent method before the Converge snippet.
Default consent
The Converge consent can be updated while the visitor is browsing the page.
To set a default consent, you can simply call the consent
method with the static default preferences — and later on, update them as follows.
Identifiers
The Converge pixel leverages the following identifiers:
Name | Description |
---|---|
__cvg_uid | Unique identifier for the user |
__cvg_sid | Unique identifier for the current session |
__cvg_session | Information about the current session. It’s used to ensure consistency of the session properties sent to Converge and to trigger new sessions based on changing UTM parameters. |