Analytics Integration
Last updated
Last updated
Understanding how users interact with your guided tours is crucial for optimizing your onboarding flows, feature adoption, and overall user experience. Cue.js makes it easy to send detailed engagement data to your analytics platform, allowing you to gain valuable insights.
Measure Effectiveness: Determine if your tours are being completed and if they lead to desired user actions.
Identify Drop-off Points: Pinpoint exactly where users are abandoning your tours, indicating areas for improvement in your steps or content.
Optimize Onboarding: Refine your onboarding experience by understanding which tour flows lead to higher activation rates.
Feature Adoption: Track if new features introduced via tours are being utilized.
Personalization: Inform future tour content or user segments based on past tour engagement.
Cue.js exposes several that serve as perfect trigger points for sending analytics data. You can hook into these events to track various aspects of tour engagement.
Here are the primary Cue.js events you'll want to use for analytics, along with examples for common platforms (adapt these to your specific analytics SDK):
1. cue.onStart(callback)
Purpose: To track when a user begins a tour.
When it fires: Exactly once, when cue.start()
is called.
2. cue.onChange(callback)
Purpose: To track individual step views and progression through the tour.
When it fires: After a step's elements (highlight, tooltip) are displayed and positioned.
3. cue.onComplete(callback)
Purpose: To track successful tour completion. This is a key success metric.
When it fires: When the user navigates through all steps and clicks the "Done" button on the final step.
4. cue.onExit(callback)
Purpose: To track when a user abandons or skips a tour. This helps identify friction points.
When it fires: When the tour is stopped prematurely (e.g., user clicks 'Skip', presses Esc, clicks overlay, or cue.exit()
is called programmatically).
Consistency is Key: Use consistent event names and property structures across all your analytics implementations.
Contextual Data: Always include relevant contextual data with your events (e.g., tour_name
, step_index
, user_id
if available).
Platform Specifics: Adapt the examples to the exact API and data model of your chosen analytics platform.
Privacy: Be mindful of user privacy regulations (e.g., GDPR, CCPA). Only collect necessary data and respect user consent settings.
Testing: Thoroughly test your analytics implementation by observing events in your analytics platform's debug view or real-time reports.
By leveraging these event hooks, you can gain deep insights into your users' tour experiences.