Tracker listener

 

Foreword

The instance of a tracker is accompanied by a listener enabling you to track the tagging of your application. It is therefore easier to detect a problem or execute custom processes.

 

Use

Once your tag is initialised, you must call the setListener method of the Tracker via a TrackerListener-type interface.

Make sure you import the ATInternet, Tracker and TrackerListener classes in your Activity or your Fragment.

 

TrackerListener Interface

 

Optional methods

NameReturn typeParameterDescription
trackerNeedsFirstLaunchApprovalvoidmessageEvent triggered when the tracker was first initialised
buildDidEndvoidstatus, messageEvent triggered at the end of constructing a hit
sendDidEndvoidstatus, messageEvent triggered at the end of sending a hit
saveDidEndvoidmessageEvent triggered at the end of saving a hit
didCallPartnervoidresponseEvent triggered once the partner’s response was received
warningDidOccurvoidmessageEvent triggered when a tagging problem occurred (does not block the hit from being sent)
errorDidOccurvoidmessageEvent triggered when a tagging problem occurred (did not block the hit from being sent)
 

Was this post helpful?

Last update: 15/02/2016