Method Signature
Parameters
Parameters for the quiz result click event
Optional parameters for the network request
Returns
Returnstrue on success or an Error object if validation fails.
Examples
Basic Example
Complete Example
Integration Example
Example After Quiz Completion
When to Use
CalltrackQuizResultClick() when:
- A user clicks on a product in quiz results
- A user navigates to a product detail page from quiz results
- A user selects a recommended item from a quiz
Important Notes
- All three quiz identifiers are required:
quizId,quizVersionId, andquizSessionId - Either
itemIdoritemNamemust be provided - These identifiers should come from the quiz results API response
- Track this event before navigating away from the quiz results page
- The
resultPositionOnPageshould be 0-indexed
Quiz Session Management
Store quiz session data when results are loaded:Required Quiz Identifiers
All quiz tracking methods require three identifiers:- quizId: Identifies the specific quiz (e.g., “style-finder”, “product-matcher”)
- quizVersionId: Identifies the quiz version (for A/B testing)
- quizSessionId: Identifies the unique quiz session
Position Tracking
Track which position in the results gets the most clicks:Relationship with Other Events
Track these events in sequence:- Quiz questions answered
- Quiz results displayed
- trackQuizResultClick - When user clicks a result (this method)
- trackQuizConversion - If the click leads to a conversion
API Endpoint
This method sends aPOST request to:
Related Methods
- trackQuizConversion - Track quiz conversions
- trackSearchResultClick - Track search result clicks
- trackRecommendationResultClick - Track recommendation clicks