Hi Community Members, I am facing an issue where tealium utag.js call not firing on iOS app. We already have an iOS app implementation through tealium and now we wanted to onboard a new implementation for iOS again and for this we are using the same tealium profile because the nav/screen somehow same on both app. Also to reduce our effort we have plan to use the same tealium profile to send data in adobe analytics. the only change we made to ditinguish the different app environment is changing the appID value and Tealium newInstanceForKey, but weare not able to get utag call for the newly implementation. Below are the tealium code for both the app but not sure where i making a mistake. Cn someone please help? Older Code ( Which is working perfectly fine on old app) // For 1BLK app configuration
NSString *env = @"";
#if DEBUG
env = @"dev";
#else
env = @"prod";
#endif
TEALConfiguration *tealConfig = [TEALConfiguration configurationWithAccount:@"blackrock"
profile:@"app-oneblk"
environment:env
datasource:@""];
// Initialize with a unique key for this instance
[Tealium newInstanceForKey:@"OneBLK" configuration:tealConfig];
//For screen tracking
- (void)logScreen:(NSString *)screenName
{
Tealium *tealium = [Tealium instanceForKey:@"OneBLK"];
NSDictionary *optionalData = @{@"appSection":[self sanitizeString:screenName],
@"userId":[self encryptLoggedInUser],
@"loginStatus":@"signedin",
@"environment" :[self envForAnalytics],
@"appLocalTime" : [NSString stringWithFormat:@"%@",[NSDate date]], //device Local time
@"appID" : @"OneBLK" // OneBLK
};
[tealium trackViewWithTitle:[self sanitizeString:screenName] dataSources:optionalData];
}
// For event tracking
- (void)logEventWithCategory:(NSString *)category action:(NSString *)action label:(NSString *)label value:(NSNumber *)value {
NSString *linkName = [NSString stringWithFormat:@"%@:%@",[self sanitizeString:category],[self sanitizeString:action]];
Tealium *tealium = [Tealium instanceForKey:@"OneBLK"];
NSDictionary *optionalData = @{@"appSection":[self sanitizeString:category],
@"userId":[self encryptLoggedInUser],
@"loginStatus":@"signedin",
@"environment" :[self envForAnalytics],
@"appLocalTime" : [NSString stringWithFormat:@"%@",[NSDate date]], //device Local time
@"appID" : @"OneBLK", // OneBLK
@"linkName" : linkName,
@"searchTerm" :[self searchTerm:action]
};
[tealium trackEventWithTitle:[self sanitizeString:action] dataSources: optionalData];
} New App Code woth Appid and Tealium new instanceforkey changes: NSString *env = @"";
#if DEBUG
env = @"dev";
#else
env = @"prod";
#endif
TEALConfiguration *tealConfig = [TEALConfiguration configurationWithAccount:@"blackrock"
profile:@"app-oneblk"
environment:env
datasource:@""];
// Initialize with a unique key for this instance
[Tealium newInstanceForKey:@"SOTM" configuration:tealConfig];
For screen tracking
- (void)logScreen:(NSString *)screenName
{
Tealium *tealium = [Tealium instanceForKey:@"SOTM"];
NSDictionary *optionalData = @{@"appSection":[self sanitizeString:screenName],
@"userId":[self encryptLoggedInUser],
@"loginStatus":@"signedin",
@"environment" :[self envForAnalytics],
@"appLocalTime" : [NSString stringWithFormat:@"%@",[NSDate date]], //device Local time
@"appID" : @"SOTM" // SOTM
};
[tealium trackViewWithTitle:[self sanitizeString:screenName] dataSources:optionalData];
}
// For event tracking
- (void)logEventWithCategory:(NSString *)category action:(NSString *)action label:(NSString *)label value:(NSNumber *)value {
NSString *linkName = [NSString stringWithFormat:@"%@:%@",[self sanitizeString:category],[self sanitizeString:action]];
Tealium *tealium = [Tealium instanceForKey:@"SOTM"];
NSDictionary *optionalData = @{@"appSection":[self sanitizeString:category],
@"userId":[self encryptLoggedInUser],
@"loginStatus":@"signedin",
@"environment" :[self envForAnalytics],
@"appLocalTime" : [NSString stringWithFormat:@"%@",[NSDate date]], //device Local time
@"appID" : @"SOTM", // SOTM
@"linkName" : linkName,
@"searchTerm" :[self searchTerm:action]
};
[tealium trackEventWithTitle:[self sanitizeString:action] dataSources: optionalData]; Let me know if need additional help. Thanks, Nandan
... View more