Page cover

SDK

chevron-rightHow do I initialise the ServerSide module?hashtag

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 arrow-up-right

chevron-rightHow do I get my siteID and sourceKey?hashtag

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.

chevron-rightWhat is defaultBehaviour used for?hashtag

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)

chevron-rightDoes my datalayer have to be the same for my website and my app?hashtag

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-referencearrow-up-right

The main benefit: a single destination to configure for both sources! Your destination configuration will be recognised by both web and mobile.

chevron-rightWhy send an event as soon as the module is initialised?hashtag

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-referencearrow-up-right

https://github.com/CommandersAct/tcserverside-flutter-plugin/tree/master/lib/eventsarrow-up-right

chevron-rightCan I use additional parameters?hashtag

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:

chevron-rightCan I create custom events?hashtag

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.dartarrow-up-right

*Don't forget to name your event: here in the example it's called 'super'.

chevron-rightCan I add persistent variables?hashtag

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.dartarrow-up-right

*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)

chevron-rightHow can I obtain IDFA/AAID?hashtag

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-aaidarrow-up-right

iOS .

https://github.com/CommandersAct/iosV5/tree/master/TCServerSide#getting-idfaarrow-up-right

Last updated