SDK
Last updated
Last updated
Here's how to do it:
The following parameters must be entered:
siteID sourceKey
defaultBehaviour
Event (optional)
https://github.com/CommandersAct/tcserverside-flutter-plugin/blob/master/lib/tc_serverside.dart
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.
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)
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
https://community.commandersact.com/platform-x/developers/tracking/events-reference
The main benefit: a single destination to configure for both sources! Your destination configuration will be recognised by both web and mobile.
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.
https://community.commandersact.com/platform-x/developers/tracking/events-reference
https://github.com/CommandersAct/tcserverside-flutter-plugin/tree/master/lib/events
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:
Yes, it's possible! For more information, see this section of our documentation https://github.com/CommandersAct/tcserverside-flutter-plugin/blob/master/lib/events/TCCustomEvent.dart
*Don't forget to name your event: here in the example it's called 'super'.
Yes, it's possible! If you need to define a persistent variable, please refer to this documentation : https://github.com/CommandersAct/tcserverside-flutter-plugin/blob/master/lib/tc_serverside.dart
*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)
Our SDK no longer automatically collects IDFA/AAID, but we offer a simple method for capturing this information.
Android .
https://github.com/CommandersAct/AndroidV5/tree/master/TCServerSide#getting-aaid
iOS .
https://github.com/CommandersAct/iosV5/tree/master/TCServerSide#getting-idfa