Unity plugin not collecting screen_title

giacomo_ritucci
Silver Contributor
Silver Contributor giacomo_ritucci

We are using the Tealium.TrackView call in order to track screen view of an Unity app.

Problem is that in the Tealium Collect gif we don't see any screen_title set.

This is an excerpt from our code:

Tealium.TrackView("Rooms Map"); 

This is what we see in our apps Log:

view: {
screen_title : Rooms Map
}

This is an excerpt from we see in the Tealium Collect gif:

    "data": {
        "timestamp": "2016-11-15T14:24:18Z",
        "os_version": "10.0.2",
        "autotracked": "false",
        "device": "iPhone",
        "override_url": "https://tags.tiqcdn.com/utag/xxx/xxx/qa/mobile.html?library_version=4.1.10&timestamp=1479218965.048684&os_version=10.0.2&platform=ios_unity",
        "lifecycle_sleepcount": "6",
        "app_id": "xxx 1.0",
        "lifecycle_secondsawake": "33",
        "device_cputype": "",
        "app_name": "xxx",
        "lifecycle_dayssincelaunch": "0",
        "lifecycle_totalterminatecount": "2",
        "platform": "iOS",
        "carrier": "Vodafone IT",
        "lifecycle_totalwakecount": "5",
        "screen_title": "",

As you can see in the last line, the screen_title is collected as a blank string, even if it has been correctly reported in the app log.

Additional details:

- we are using the 4.1.x version of the mobile library

- we turned off mobile autotracking

- we don't have any extension, we just added the Tealium Collect and the Google Analytics tag.

Any ideas?

Best,

Giacomo

3 REPLIES 3

Unity plugin not collecting screen_title

Tealium Employee

Hi Giacomo,

The Unity plugin is one of the lesser-used plugins we provide, and as you can see from the GitHub repo, hasn't been updated for a while.

I don't have a Unity environment set up currently to test with, but my suspicion is that you may have found a bug in the plugin. I would suggest (if you haven't already) trying the following:

  1. Use the other implementation of the TrackView API that allows you to pass a dictionary, and in the dictionary, pass a key of screen_title with the correct value, e.g:

    var data = new Dictionary.<String, String>(1);
    data["screen_title"] = "Home Screen";
    
    Tealium.TrackView("Home Screen", data);

    This might be a possible workaround - can you test and confirm?
  2. Same as 1) above, but try a different key name (e.g. screen_name). If you need to use the key screen_title, you could create an extension in TIQ to map screen_name to screen_title.

If this doesn't work, please come back and let me know on this thread. I'd also be interested to know your use case for the Unity plugin, so if you don't mind sharing, please contact me directly by PM or email.

Thanks,

Craig.

Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.

Unity plugin not collecting screen_title

giacomo_ritucci
Silver Contributor
Silver Contributor giacomo_ritucci

Hi Craig,

we tested the 1st solution and it works, it seems that the first parameter of the TrackView call is ignored but setting screen_name in the data layer works.

Should I file a bug report on the github issue page?

Unity plugin not collecting screen_title

Tealium Employee
Thanks for testing @giacomo_ritucci! Yes, please open an issue on the GitHub page. I can't promise when it will be addressed, since there is a workaround, but we will review internally and add it to the list of plugins to be updated.
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.