Track
Learn about the methods for tracking user activity.
Track Views
The trackEvent()
method is used to track views, as shown in the following example:
trackEvent("SCREEN_NAME", data, callback)
The parameters data
and callback
are optional.
Track Events
The same trackEvent()
method is used to track events, as shown in the following example:
trackEvent("EVENT_NAME", data, callback)
The parameters data
and callback
are optional.
The following example demonstrates an event with the optional data and callback arguments provided:
def tealiumCallback(info, success, error=None):
if error is not None:
print (info, success, error)
return
print (info, success)
eventData = {'KEY': 'VALUE'}
teal.trackEvent('EVENT_NAME',
data=eventData,
callback=tealiumCallback)
This page was last updated: October 18, 2024