We are trying to upgrade our tealium lib on our react native project from v1 to v2. Our usage has been quite simple in our react-native app with v1: Tealium.initialize('ACCOUNT', 'PROFILE', 'ENV'); and for usage mostly Tealium.trackEvent('EVENT_NAME'); // no extra data We've following the API and help doc https://community.tealiumiq.com/t5/Mobile-Libraries/Upgrading-React-Native-SDKs-Differences-in-the-SDKs-Tracking-and/ta-p/36874 We've updated our intialization to what is the minimum required: let tealiumConfig = {
account: 'ACCOUNT',
profile: 'PROFILE',
environment: 'ENV',
dispatchers: [Dispatchers.Collect],
collectors: [Collectors.AppData, Collectors.Connectivity],
};
Tealium.initialize(tealiumConfig, success => {
console.log('tealium success:', success);
}); The callback return true, which signals we are on the right track. When trying to send data we've also updated accordingly: let tealiumEvent = new TealiumEvent('EVENT_NAME', {}); //most of the times we don't send data so we leave an empty object as per TS requirement
Tealium.track(tealiumEvent); Things look quite straightforward but we are simply not getting any events on the other side when we apply this upgrade. Could you provide more information or samples for the react native use case. Perhaps more details on the Collectors and Dispatchers for people coming from v1 where they weren't setup whatsoever but now they are required. Are there any other items to setup? As a extra curiosity. We don't seem to get anything out of the `loglevel` TealiumConfig when set in any of the different values ( LogLevel.qa / dev / prod). The React Native debugger doesn't show anything no matter what value is used. The documentation does not go into detail of how to benefit from this field either. Regards
... View more