Please note worked with gemini , but final version was redacted from me:)
[Guide] How to Track New Wix Forms (V2) with Google Tag Manager
I recently worked through the setup for the New Wix Forms (V2) with Gemini. While Gemini initially suggested tracking via formName, we discovered that this method wasn’t reliable for my specific setup because the “Native” GTM triggers are blind to the new Wix forms.
After further debugging and inspecting the Data Layer myself, I found the robust solution.
The Main Difference: Old vs. New
-
Old Wix Forms: Relied on standard HTML “Element IDs” (e.g.,
#comp-1234) or generic submit listeners. -
New Wix Forms: Now use Data Layer Events. Wix automatically pushes a clean signal to GTM when a lead is generated, so we no longer need to “listen” for button clicks or HTML IDs (which no longer work).
Here are the two proven methods to track specific forms (e.g., “Contact Us” vs. “Newsletter”).
Step 1: Find Your Form’s ID or Name
The new forms send both a unique ID and a Name to the Data Layer upon submission. You need to find these values first.
-
Open GTM Preview Mode and submit your form on your live site.
-
In the Preview window sidebar, look for the event
generate_lead. -
Click the event and open the Data Layer tab in the main panel.
-
Look for these two lines:
-
Option A (Best):
form_id: “7f971813-b24c-45a6-…” (Unique system ID). -
Option B (Alternative):
label: “Form name: Contact Us” (Contains your form’s name).
-
Step 2: Create the Variable (To Read the Data)
We need to teach GTM how to read that specific data from the code. Choose one of the methods below.
Method A: The “Form ID” Variable (Recommended)
This is the most robust method because IDs never change, even if you rename the form.
-
Go to Variables > New > Data Layer Variable.
-
Data Layer Variable Name:
form_id(Type exactly as seen in Data Layer). -
Variable Name:
DLV - Form ID.
Method B: The “Form Name” Variable
Use this if you prefer to track by the human-readable name you gave the form in Wix.
-
Go to Variables > New > Data Layer Variable.
-
Data Layer Variable Name:
label(Type exactly as seen in Data Layer). -
Variable Name:
DLV - Form Label.
Note: “DLV” stands for Data Layer Variable. This naming convention helps keep your GTM organized.
Step 3: Create the Trigger (The Rule)
Now we create the rule that fires ONLY when this specific form is submitted.
-
Go to Triggers > New.
-
Trigger Type: Custom Event.
-
Event Name:
generate_lead(Must match exactly). -
This trigger fires on: Some Custom Events.
-
Define the Condition:
-
If using Method A (ID):
-
[DLV - Form ID]…equals…7f971813-b24c... -
(Use equals for precise matching).
-
-
If using Method B (Name):
-
[DLV - Form Label]…contains…Contact Us -
(Use contains here! Do NOT use “equals”. Wix adds a prefix like "Form name: " and spaces, so “equals” will fail unless you copy the entire string perfectly).
-
-
-
Name:
Trigger - Contact Form Success. -
Click Save.
Step 4: Create Your Tags (GA4, Google Ads, Microsoft)
Now that you have a working trigger, you can use it for any marketing platform. This works perfectly for conversions because generate_lead only fires on a successful submission.
Option A: Google Analytics 4 (GA4)
-
Tag Type: Google Analytics: GA4 Event.
-
Event Name:
generate_lead -
Triggering: Select
Trigger - Contact Form Success.
Option B: Google Ads Conversion
-
Tag Type: Google Ads Conversion Tracking.
-
Conversion ID / Label: Enter your details from Google Ads.
-
Triggering: Select
Trigger - Contact Form Success.
Option C: Microsoft (Bing) Ads
-
Tag Type: Microsoft Advertising Universal Event Tracking.
-
Triggering: Select
Trigger - Contact Form Success.
Reference Note
Wix does have a support article titled “Tracking Google Ads conversions using Wix custom code” (Method 3). While it mentions using GTM, it is quite vague and does not explain the crucial form_id vs. label distinction or the specific Data Layer variables needed for V2 forms. The steps above are the specific, tested solution for the new infrastructure.
