You should initialize the SDK in a central location and store it in a variable
for use across your application. For example, you may want to initialize it in
your app delegate.
The identify method sends an identify event. It accepts user id and trait
information for the current user -- if you only have partial information, you
can just supply a single parameter.
The screen method sends a screen event. The screen title is required, and
additional information about the screen's category and properties may be
supplied.
The iOS SDK buffers events locally before sending them to Hightouch's servers.
This minimizes the number of requests made by the SDK and makes the tracking
non-blocking.
To force the local buffer to be sent to Hightouch immediately call the flush
method.
The reset method resets the identify and group for the local session.
Specifically, it resets the anonymousId, userId, referrer, and traits.
The reset method should be called when users log out. This way, if the user
logs back in with another account, the userIds and traits from the different
sessions remain separate.
Method signature:
funcreset()
Ready to get started?
Jump right in or a book a demo. Your first destination is always free.