Track
Track Events
Track events with the TrackEvent()
method, as shown in the following example:
data = CreateObject("roAssociativeArray")
data.someKey = "KEY_VALUE"
callback = CreateObject("roAssociativeArray")
callback.callBack = Function (event)
print "Callback called!"
responseHeaders = event.GetResponseHeaders()
responseKeys = responseHeaders.Keys()
responseCode = event.GetResponseCode()
for each key in responseKeys
value = responseHeaders[key]
print key + " : " + value
End for
End Function
teal.TrackEvent("EVENT_NAME", data, callback)
Was this article helpful?
This page was last updated: October 24, 2019