Skip to main content
Fires when a visitor answers a question in a quiz or assessment. This is a recommended custom event for tracking quiz progress, identifying drop-off points, and analyzing answer patterns.
Custom Event — This event is not automatically tracked. Fire it manually using the JavaScript SDK after each question is answered.

JavaScript

window._upstack('track', 'quiz_question_answered', {
  quiz_id: 'skin-type-finder',
  question_id: 'q3_skin_concerns',
  question_number: 3,
  question_text: 'What are your primary skin concerns?',
  answer_id: 'acne',
  answer_text: 'Acne & Breakouts',
  total_questions: 8
});
Multiple-choice question with multiple answers:
window._upstack('track', 'quiz_question_answered', {
  quiz_id: 'gift-finder',
  question_id: 'q2_interests',
  question_number: 2,
  question_text: 'What are their interests?',
  answer_ids: ['tech', 'outdoors', 'cooking'],
  answer_texts: ['Technology', 'Outdoors & Adventure', 'Cooking & Food'],
  total_questions: 5
});

Properties

PropertyTypeRequiredDescription
quiz_idstringYesUnique identifier for the quiz
question_idstringYesUnique identifier for the question
question_numbernumberNoPosition of the question (1-indexed)
question_textstringNoThe question text displayed to the user
answer_idstringNoIdentifier for single-choice answer
answer_idsstring[]NoIdentifiers for multiple-choice answers
answer_textstringNoDisplay text for single-choice answer
answer_textsstring[]NoDisplay texts for multiple-choice answers
total_questionsnumberNoTotal number of questions in the quiz
time_on_questionnumberNoSeconds spent on this question

When to Fire

  • After each quiz question is submitted
  • When a user selects an answer (if auto-advancing)
  • When moving to the next question in a multi-step quiz

Destination Support

DestinationSupport
Meta CAPISupported as Custom event type. Build audiences based on specific answer patterns.
TikTok Events APISupported. Use for audience building.
KlaviyoFully supported. Track answer patterns for segmentation.
GA4Supported. Use for funnel analysis and drop-off tracking.
WebhookFully supported. Raw payload forwarded.
Funnel analysis tip: Track question_number and total_questions to identify where users drop off. High drop-off on a specific question may indicate confusing wording or too many options.
  • quiz_completed — Fire when the quiz is finished
  • lead — If capturing contact info mid-quiz