Mastering Conversion Tracking: Adapting GTM for New Wix Forms

Navigating the Evolving Landscape of Form Conversion Tracking on Wix

For e-commerce store owners, accurately tracking lead generation and form submissions is paramount for optimizing marketing spend and understanding customer journeys. However, platform updates can sometimes introduce unforeseen challenges, disrupting established analytics configurations. A common pain point arises when a platform, such as Wix, rolls out new form functionalities that alter how submission events are communicated to external tracking systems like Google Tag Manager (GTM).

Recent observations highlight a specific issue: after transitioning from older Wix forms to the updated versions, businesses are finding that their crucial generate_lead events are no longer firing in GTM upon successful form submission. While the initial interaction, often marked by a form_start event, is still tracked, the critical completion event goes missing. This discrepancy can severely skew conversion data, making it difficult to assess campaign performance and lead quality.

The Core Problem: When Submission Events Go Dark

The essence of the problem lies in how modern web forms, particularly those integrated deeply within platform ecosystems, handle submissions. Many contemporary forms utilize Asynchronous JavaScript and XML (AJAX) to process data without a full page reload. While this enhances user experience, it often means that the traditional browser-level submit event, which GTM typically listens for, is intercepted or bypassed internally by the platform's scripts.

In the case of new Wix forms, the user experience involves filling out a form, submitting it, and then being presented with a "Thank you" popup. This popup confirms the submission was successful on Wix's end. Yet, GTM fails to register a corresponding event, leaving a critical gap in the conversion funnel. Attempts to track this using standard custom event triggers, click listeners, or even variations of form submission detection have proven unreliable, suggesting that the actual submission event isn't readily exposed to the data layer.

This situation isn't necessarily a "limitation" of the new Wix forms but rather an evolution in how they operate. Platforms increasingly encapsulate their functionalities, which can inadvertently obscure the very events external tracking tools depend on. The challenge, therefore, is to adapt our GTM strategies to capture the success signal that the platform does expose, even if it's not a direct "form submitted" event.

Strategic Solutions for Reliable Lead Tracking

To restore accurate generate_lead tracking, store owners must move beyond traditional form submission triggers and focus on the clearest indicator of success: the "Thank you" confirmation. Here are the most reliable approaches:

1. The Gold Standard: Dedicated Thank You Pages

While the new Wix forms often display a "Thank you" popup, the most robust and universally recommended method for conversion tracking remains redirecting users to a dedicated "Thank You" page after submission. This method is incredibly reliable because a pageview is a distinct and easily trackable event.

  • Implementation: Configure your Wix form settings to redirect to a specific URL (e.g., yourstore.com/thank-you) upon successful submission.
  • GTM Trigger: Create a "Page View" trigger in GTM that fires when "Page Path equals /thank-you".
  • GTM Tag: Link this trigger to your generate_lead event tag (e.g., GA4 event, Google Ads conversion).

If a redirect is not feasible or desired, the "Thank you" popup becomes our primary target.

2. Leveraging GTM's Element Visibility Trigger for Popups

Given that a "Thank you" popup appears, GTM's Element Visibility trigger offers a highly effective way to track this success state. This trigger fires when a specific HTML element becomes visible in the user's viewport.

  • Step 1: Identify the Popup Element: Use your browser's developer tools (right-click, "Inspect") to examine the "Thank you" popup. Look for a unique CSS Selector (ID or Class) associated with the popup container. For example, it might be #thankYouPopupID or .wix-thank-you-modal.
  • Step 2: Create a GTM Element Visibility Trigger:
    Trigger Type: Element Visibility
    Selection Method: CSS Selector
    Element Selector: [Your identified CSS Selector, e.g., #thankYouPopupID]
    When to Fire This Trigger: Once per page
    Minimum Percent Visible: 1% (or higher if you want to ensure it's clearly visible)
    Observe DOM Changes: Check this box (important for dynamically loaded popups)
  • Step 3: Link to Your Conversion Tag: Attach this newly created Element Visibility trigger to your generate_lead event tag in GTM.

3. Data Layer Integration (Advanced and Most Robust)

The ideal solution for any modern web application is to push custom events directly to the data layer upon successful form submission. If Wix allows custom JavaScript injection (e.g., in a "Thank You" message script or a custom code block), you can manually push a generate_lead event.

  • Implementation: If Wix offers a way to execute custom JavaScript after a form submission (e.g., within the form's success message editor or custom code settings), insert the following:
  • GTM Trigger: Create a "Custom Event" trigger in GTM where "Event Name equals generate_lead".
  • GTM Tag: Link this custom event trigger to your conversion tag.

This method provides the most control and reliability, as the event is explicitly declared by the platform (or your injected code) at the exact moment of success.

Best Practices for Ongoing Monitoring

Regardless of the method chosen, regular testing is crucial. Utilize GTM's Preview Mode to observe the data layer and event firing in real-time. Fill out your forms, submit them, and ensure your generate_lead event fires precisely when the "Thank you" confirmation appears or the redirect occurs.

As e-commerce platforms continue to evolve, so too must our tracking methodologies. By understanding the underlying changes in how form submissions are handled and by leveraging the advanced capabilities of Google Tag Manager, store owners can maintain precise conversion tracking, ensuring their analytics remain a reliable foundation for data-driven decisions.

Share: