Tracking Events via Google Tag Manager

Last updated February 5, 2025

Skin Match Technology events are transmitted via postMessage from a questionnaire iframe to the parent page.

Skin Match Technology events are transmitted via postMessage from an SMT questionnaire iframe to the parent page.

The “Custom HTML PostMessage Listener” GTM tag contains a script that listens for message events, processes incoming data (e.data), and pushes structured data to the dataLayer for analytics purposes, such as Google Analytics (GA4), Facebook Ads, Google Ads. etc.

The “Custom HTML PostMessage Listener” GTM tag contains a script that listens for message events, processes incoming data (e.data), and pushes structured data to the dataLayer for analytics purposes, such as Google Analytics (GA4), Facebook Ads, Google Ads. etc.

See more here - https://developers.google.com/analytics/devguides/collection/ga4/reference/events

Use Cases

  • Audiences and Funnels: Utilize smt-profile data to create targeted audiences and analyze user journeys across the funnel.

  • Leads and Enhanced Conversions: Incorporating email and other identifiers improves attribution accuracy in platforms like Google Ads, Facebook Ads, and others.

  • Segmentation: Segment users by preferences (questionnaire needs) or behavior (e.g., products added to cart/wishlist).

GTM Events

Table A - SMT Profile Data Fields

Table B - Enhanced Ecommerce Data Fields

Related Topics