API Reference
Reference guide for classes and methods provided by Tealium for Unity 1.x.
Class: Tealium
The following summarizes the commonly used methods of the Tealium
class for Unity library.
Method | Description |
---|---|
TrackEvent() |
Track game events with optional parameters for event data. |
TrackView() |
Track game views with optional parameters for view data. |
TrackEvent()
Track a user’s interaction with a game.
Tealium.TrackEvent(event, data);
Parameters | Type | Description | Example Value |
---|---|---|---|
event |
String |
The current game event, which populates the tealium_event variable in the data layer. |
game_started |
data |
Dictionary |
(Optional) Data pertaining to the event. | new Dictionary < string, string > ( ) { {"weapon", "sword"} } |
TrackView()
Track game view activity.
Tealium.TrackView(title, data);
Parameters | Type | Description | Example Value |
---|---|---|---|
title |
String |
The current screen title, which populates the tealium_event variable in the data layer. |
level_1 |
data |
Dictionary |
(Optional) Data pertaining to the screen. | new Dictionary < string, int > ( ) { {"score", 1575} } |
This page was last updated: January 7, 2023