Tracking with Cordova android plugin

shuchita
Rookie Contributor
shuchita

Hi,

 

I have added plugin to my hybrid app. Also included the tealium.track(view) events as below:

tealium.track("view", // "view" or "link"
                                    {   "screen_title" :"xyz",
                                        "screenPath":"/xyz"
                                          }, 
                                    "tealiumtest" 
                                    );
 
Below script adds a view event in the event section of Live tracking for GA dashboard for iOS app with page name under view catergory. But for Android it only displays the screen_title  in the active page views section.
In android I aaded below script to track click events:
tealium.track("link", // "view" or "link"
                                   
                                         "link_id":"xyz"/// eneterd page name here
                                         "appEventCategory" :"xyz",
                                        "appEventLabel":"xyx"
                                         " appEventAction":''click"
                                          }, 
                                    "tealiumtest" 
                                    );
 
This script after adding link_id shows the page name events under event section but under event category "activity". where as link_id is not required for iOS app.
Please help how to get a page vie events for Android app under View as Event Category.
3 REPLIES 3

Tracking with Cordova android plugin

kathleen_jo
Employee Emeritus
kathleen_jo

Hi @shuchita. I am trying to find you some assistance. Thank you for your patience. 

Remember to give me a kudo if you like my post! Accepting my post as a solution is even better! Also remember that search is your friend.

Tracking with Cordova android plugin

Tealium Employee

To update this Forum post, we've picked this up as a Support Ticket in EMEA.

 

There are a couple of issues contributing this that we've found so far:

1. The mappings on the Tag are as follows:

tealium_event_type -> eventAction

tealium_event -> eventCategory

 

2. Our iOS SDK seems to pre-populate tealium_event with the value of screen_title, whereas the Android SDK does not does this, and defaults the tealium_event to "view" / "link" 

As a result, whilst both the Android SDK and iOS SDK are triggering page view events, the values of EventAction and Event Category are differing.

The same is true for the link_id as described by Shuchita's post.

 

Tracking with Cordova android plugin

kathleen_jo
Employee Emeritus
kathleen_jo

Thank you for the synopsis @jameskeith!

Remember to give me a kudo if you like my post! Accepting my post as a solution is even better! Also remember that search is your friend.