Does anyone know the default tracking method for tealium mobile. i know for desktop it's utag.link for interactions and utag.view for page views. how does that translate into mobile. For android and iOS.

Rookie Contributor
 
5 REPLIES 5

Does anyone know the default tracking method for tealium mobile. i know for desktop it's utag.link for interactions and utag.view for page views. how does that translate into mobile. For android and iOS.

Tealium Employee
Actually it's the same! Mobile uses utag, but the mobile libraries call utag.track('link', {...}) and utag.track('view', {...}).

Does anyone know the default tracking method for tealium mobile. i know for desktop it's utag.link for interactions and utag.view for page views. how does that translate into mobile. For android and iOS.

Rookie Contributor
ok. Thanks a lot. the reason why i asked is because i've seen this method as well. iOS [[Tealium sharedInstance] track:nil customData:@{ @"link_name":@"Exchange Rate Set", @"set_exchange_rate":@"1" } as:TealiumEventCall]; Android Tealium.track(w, Tealium.map( "link_name", "Exchange Rate Set", "set_exchange_rate", "1" ), null); Is this just for custom data sources only on mobile where you have to call Tealium.track

Does anyone know the default tracking method for tealium mobile. i know for desktop it's utag.link for interactions and utag.view for page views. how does that translate into mobile. For android and iOS.

Tealium Employee
My apologies I misunderstood the purpose behind your question. Well the 3rd argument in [[Tealium sharedInstance] track:...] and Tealium.track(...) are the hardcoded values "view" or "link" to be used in utag.track(['view']/['link'], {...}). iOS TealiumEventCall = @"link"; TealiumViewCall = @"view"; Android Tealium.EVENT_NAME_LINK = "link"; Tealium.EVENT_NAME_VIEW = "view"; Those custom data sources are what is supplied as the second argument in utag.track('???', { /*here*/}) which are then mapped in the data-layer.

Does anyone know the default tracking method for tealium mobile. i know for desktop it's utag.link for interactions and utag.view for page views. how does that translate into mobile. For android and iOS.

Rookie Contributor
OK. so what would be possible to use utag.track in a mobile app to also track custom data

Does anyone know the default tracking method for tealium mobile. i know for desktop it's utag.link for interactions and utag.view for page views. how does that translate into mobile. For android and iOS.

Employee Emeritus
Yes, if you are debugging with your device connected to a web inspector and making the call directly into the library's webkit instance. Otherwise, use the library's track api, in iOS (v3.2 method): [[Tealium trackCallType:TealiumEventCall customData:@{@"myCustomkey":@"myCustomValue" object:nil];