Here's how to obtain these 2 pieces of information:
siteID: corresponds to your workspace ID on the Commanders Act platform
sourceKey: you obtain this by creating the Flutter source, from the Source => Create menu on the Commanders Act platform.
*If necessary, a Commanders Act consultant can help you obtain these 2 identifiers.
What is defaultBehaviour used for?
This is used to determine how you wish to initialise the ServerSide module.
3 values are possible
PB_DEFAULT_BEHAVIOUR : method to use if you do not have the consent module.
PB_ALWAYS_ENABLED : the module is active before consent is given. This allows events to be sent before the user has given consent.
PB_DISABLED_BY_DEFAULT: the module is deactivated before consent, it will be activated after the user has accepted cookies (optin)
Does my datalayer have to be the same for my website and my app?
This is good practice!
We strongly recommend that you use the same datalayer for both the web application and the mobile application. We recommend that you use our standardised nomenclatures
The main benefit: a single destination to configure for both sources! Your destination configuration will be recognised by both web and mobile.
Why send an event as soon as the module is initialised?
This is used to send an event prior to consent (recommended for consent-exempt destinations).
This can be a standard Commanders Act event (recommended) or it can be a custom event, depending on your needs.
Can I use additional parameters?
Yes, it's possible!
All you have to do is add them to the standard properties.
*Make sure you use them correctly on the Commanders Act platform.
Example:
Can I create custom events?
*Don't forget to name your event: here in the example it's called 'super'.
Can I add persistent variables?
*You must define the 'key' and 'value' parameters yourself.
Defining a persistent variable: This is a key/value system, the value of which will remain the same forever. (example: Google Account ID)
How can I obtain IDFA/AAID?
Our SDK no longer automatically collects IDFA/AAID, but we offer a simple method for capturing this information.
Android .
iOS .
Yes, it's possible! For more information, see this section of our documentation
Yes, it's possible! If you need to define a persistent variable, please refer to this documentation :