The examples below illustrate how to use the main Copilot SDK components.
Chapter 2 is a walkthrough of a single Copilot based flow - how to notify Copilot for user session and how to report the analytic events associated with the user.
Notify about user's session - Manage session
Once the user creates authenticated logged in session with your backend Copilot should be notified using the Manage session component passing user consent for analytics tracking.
⭐ More details about the Manage session commands can be found here
Track application behavior - Report
Reporting every event in your application allows Copilot platform to analyse and engage correctly your users.
⭐ More details about Report component can be found here.
The Copilot SDK already contains a set of predefined analytics events, simplifying the way you report events. Below an example of a signup event, which you should report when receiving a successful response upon registration.
Below you can see an example how to report the Signup succeeded analytics event