Skip to main content

Google Analytics Custom Events & Dimensions

Written by Wendy

This article outlines a full list of the custom events and properties sent by Lantern to Google Analytics.

Lantern’s Google Analytics tracking respects your customers’ analytics cookie consent through Shopify’s Customer Privacy API. A Google Analytics ID loads only with analytics consent. A Google Tag Manager or Google Ads ID also loads with marketing consent, and its tags follow the consent signals Lantern passes to Google. Learn more in How Lantern Handles Cookie Consent.

If you use Google Tag Manager, these properties are available under eventModel (for example eventModel.quiz_id), or through an Event Data variable.

Answers from questions set to Don't share or Don't store are not included in the data sent to Google Analytics. Learn more about Sensitive Data Controls.

Welcome Screen Page

  • load_welcome_screen

    • properties: store_id, quiz_id, lantern_session_id, page

    • triggered when the welcome screen is loaded

  • leave_welcome_screen

    • properties: store_id, quiz_id, lantern_session_id, page

    • triggered when the user leaves the welcome screen to start the quiz (typically by clicking on or tapping on the Start button)

    • it doesn’t get triggered if the user leaves the quiz

Question Page

  • Email Page

    • load_email_page

      • properties: store_id, quiz_id, lantern_session_id, page, question_id

      • triggered when the email optin page is loaded

    • submit_email

      • properties: store_id, quiz_id, lantern_session_id, page, question_id, marketing_consent, is_required

      • triggered when the user submits the email optin form

    • skip_optin

      • properties: store_id, quiz_id, lantern_session_id, page, question_id

      • triggered if the user clicks on “No Thanks” or a similar link or button which allows them to skip the email page without providing an email address

  • Transition Screen

    • load_transition_screen

      • properties: store_id, quiz_id, lantern_session_id, page, question_id

      • triggered when a transition screen is loaded (the exact screen can be identified through the question_id)

    • leave_transition_screen

      • properties: store_id, quiz_id, lantern_session_id, page, question_id

      • triggered when a transition screen is left through a direct action (e.g. clicking on a button to proceed to the next question)

    • timeout_transition_screen

      • properties: store_id, quiz_id, lantern_session_id, page, question_id

      • triggered when a transition screen is left through a timeout (e.g. the transition screen disappears after 3 seconds, and the next question is displayed automatically)

  • Question / One-Line Input / Multi-Line Input

    • load_question_page

      • properties: store_id, quiz_id, lantern_session_id, page, question_id, question_type

      • triggered when a question page is loaded (the exact question can be identified through the question_id)

    • submit_answer

      • properties: store_id, quiz_id, lantern_session_id, page, question_id, question_type, title, is_required, options, answers, property_id

      • triggered when a question is answered

      • Answer data from questions set to Don't share or Don't store is not sent to Google Analytics.

    Results Page

    • load_results_page

      • properties: store_id, quiz_id, lantern_session_id, page

      • triggered when the results page is loaded

    • restart_quiz

      • properties: store_id, quiz_id, lantern_session_id, page

      • triggered if the user chooses to restart the quiz (after reaching the results page)

    • display_results

      • properties: store_id, quiz_id, lantern_session_id, page, results, content_block_results, answers, marketing_consent

      • triggered when the results are displayed on the results page - this event includes properties with full details about the product recommendations being made

      • The answers property does not include answers from questions set to Don't share or Don't store.

    • add_all_to_cart

      • properties: store_id, quiz_id, lantern_session_id, page

      • triggered if the user clicks on the “Add All To Cart” button

    • add_to_cart

      • properties: store_id, quiz_id, lantern_session_id, page, variant_id, sku, title, price

      • triggered when an “Add To Cart” button is clicked (a product is added to cart) - this event includes properties with full details about the product being purchased

    • go_to_product_page

      • properties: store_id, quiz_id, lantern_session_id, page, link, variant_id, sku, title, price

      • triggered when the user goes to a product page from the results page (e.g. by clicking on “Choose Options”)

    • go_to_cart

      • properties: store_id, quiz_id, lantern_session_id, page

      • triggered if the user visits the cart page from the results page

Did this answer your question?