Method Signature
Parameters
The tracking parameters.
Network-specific parameters.
Returns
Returnstrue on success or an Error object on failure.
Examples
Basic Usage
With Pagination
Complete Quiz Flow with Tracking
In a React Component
When to Use
Track quiz results loaded:- Immediately after quiz results are rendered on the page
- When a user navigates to a new page of quiz results
- After filtering or sorting quiz results
This event helps Constructor.io:
- Measure quiz completion rates
- Analyze which products are recommended for different quiz answers
- Optimize quiz result quality
Best Practices
- Track Once Per Page Load: Only call this when results are first displayed, not on every re-render.
-
Include All Visible Items: The
itemsarray should contain all products currently visible to the user. -
Use Correct IDs: Ensure
quizId,quizVersionId, andquizSessionIdmatch those from the quiz results response. -
Track Pagination: When users navigate to a new page of results, track a new results loaded event with the updated
resultPage.
Error Handling
Related Methods
- trackQuizResultClick - Track clicks on quiz results
- trackQuizConversion - Track conversions from quiz results
- getQuizResults - Get quiz product results