# Setting Up Google Ads Conversions

Source: https://support.wix.com/en/article/tracking-google-ads-conversions-using-wix-custom-code (updated 2026-03-26)
Related: Wix developer documentation, https://dev.wix.com/docs/llms.txt; Help Center index, https://support.wix.com/en/llms.txt

Setting up Google Ads conversions allows you to track when visitors take specific actions on your site, such as making a purchase, filling out a form, or subscribing to a newsletter. Tracking these conversions helps you understand which ads, keywords, and campaigns drive valuable customer actions.

This information allows you to make better marketing decisions and optimize your advertising budget. For example, if you run a campaign to sell a new product, conversion tracking helps you see which ads lead to actual sales.

> **Important:** In countries covered by GDPR, Google only tracks visitor sessions where visitors give explicit consent via a cookie banner. [Learn more about displaying a cookie banner on your site](https://support.wix.com/en/article/displaying-a-cookie-banner-on-your-site).

View three different ways you can set up Google Ads conversions below.

---

## Method 1 | Import conversions from Google Analytics

Importing Google Ads conversions from Google Analytics is an ideal method for all users. With a straightforward connection process, you can manage everything from your Google account and turn any Wix events into conversions. Google Tag unifies Google Analytics, Google Ads and other Google products. Learn more about [Google Tag Unification](https://support.wix.com/en/article/google-tag-unification).

> **Important:** Your Google Analytics and Google Ads accounts must have the same login details (email address and password) as your Google account.

### To import conversions from Google Analytics:

1. [Go to Marketing Integrations](https://www.wix.com/my-account/site-selector/?siteType=HtmlWeb&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fmarketing-integration%3FreferralInfo%3Dmarketing%5Fintegrations%5Farticle%5Flink&title=Marketing%20Integrations&buttonText=Add%20Integrations) in your site's dashboard.
2. Click **Connect** under **Google Tag**.
3. Click **Add Google Tag ID**.
4. Paste your Google ID in the pop-up.  
**Note:** Make sure that there are no extra spaces before the code.
5. (Optional) Select the IP Anonymization checkbox if you want to hide your site visitors’ IP addresses from Google.
6. Click **Save**.
7. [Set up key events in Google Analytics](https://support.google.com/google-ads/answer/9520128?sjid=2683229238575245019-EU) for the conversions you want.
8. [Go to your Google Ads account](https://ads.google.com/aw/overview).
9. Click **Tools & Settings** in the top right corner.
10. Select **Conversions** under **Measurement** in the drop-down menu.
11. Click **Add conversion** ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/9dcc39dd-da6f-4c38-b1c3-ee79d33f39d5/2021/05/07/f2becd6e-1dea-47ca-8f48-cebb59a1ee8b/92917429-c58e-434c-9ee4-eb64f60eb45a.png).
12. Click **Import**.
13. Select **Google Analytics 4 properties** (**App** or **Web**).
14. Click **Continue**.
15. Select the analytics events that you want to track.
16. Click **Import and continue**.
17. Click **Done**.

---

## Method 2 | Implementing custom code

Implementing custom code to set up Google Ads conversions offers you more flexibility and precision. Wix supports conversions for both leads and purchases, which also allows you to [set up enhanced conversions](https://support.wix.com/en/article/setting-up-enhanced-conversions-with-wix) if needed.

### Supported conversion types

* **Lead Conversions:** Triggered when site visitors submit contact forms, subscribe, or send messages through Wix Chat.
* **Purchase Conversions:** Triggered when site visitors complete a payment for goods or services.

> **Before you begin:** [Create a conversion action](https://support.google.com/google-ads/answer/12216424?sjid=6783535481547499834-EU) in your Google Ads account. This gives you the Conversion ID and Conversion label that you need to use in Google Tag Manager to track the action.

## To implement custom code for lead conversions:

1. Copy the code snippet provided below and enter it into a text editor.

```javascript
<script>
   if (typeof conversion_id === 'undefined') {
   //Replace 'AW-CONV-ID' with your conversion ID
   var conversion_id = 'AW-CONV-ID'; //must be associated with Google Tag installed at Wix
}
   if (typeof conversion_label === 'undefined') {
   //Replace 'CONVERSION-LABEL' with your conversion label
   var conversion_label = 'CONVERSION-LABEL';
}
   function registerListener() {
       window.wixDevelopersAnalytics.register('conversionListener', (e, p) => {
           if (e === 'Lead') {
               if (!dataLayer) {
                   console.error('Google Tag (gtag) is not loaded. ');
               } else {
                   function gtag() { dataLayer.push(arguments); }
                   gtag('event', 'conversion', {
                       'send_to': conversion_id + '/' + conversion_label
                   });
               }
           }
       });
}
   window.wixDevelopersAnalytics ?
   registerListener() :
   window.addEventListener('wixDevelopersAnalyticsReady', registerListener);
</script>
```

1. Replace the placeholder values with your values:  
   * **AW-CONVERSION\_ID:** Your Conversion ID from Google Ads  
   * **LABEL\_ID:** Your Label ID from Google Ads
2. Copy the entire code snippet.
3. [Go to Custom Code](https://manage.wix.com/my-account/site-selector/?siteType=HtmlWeb&actionUrl=https://www.wix.com/dashboard/{{metaSiteId}}/manage-website/embeds/?&title=Select%20a%20site&buttonText=Go+to+Custom+Code) in your site's dashboard.
4. Click **+ Add Custom Code** at the top right.
5. Click the **Code Type** tab, then scroll down and select **Marketing**.
6. Click the **Code Settings** tab and paste the code snippet into the **Paste the code snippet here** field.
7. Enter a name for your code in the **Name** field.  
**Tip:** Give it a name that is easy to recognize so you can quickly identify it later.
8. Select an option under **Add Code to Pages**:  
   * **All pages:** This adds the code to all of your site's pages, including any new pages that you create in the future. Choose whether to load the code only once per visit, or on each page your visitor opens.  
   * **Choose specific pages:** Use the drop-down menu to select the relevant pages.
9. Choose where to place your code under **Place Code in**:  
   * Head  
   * Body - start  
   * Body - end
10. Click **Apply**.

## To implement custom code for purchase conversions:

1. Copy the code snippet provided below and enter it into a text editor.

```javascript
<script>
   if (typeof conversion_id === 'undefined') {
   //Replace 'AW-CONV-ID' with your conversion ID
   var conversion_id = 'AW-CONV-ID'; ////must be associated with Google Tag installed at Wix


}
   if (typeof conversion_label === 'undefined') {
   //Replace 'CONVERSION-LABEL' with your conversion label
   var conversion_label = 'CONVERSION-LABEL';
}
   function registerListener() {
       window.wixDevelopersAnalytics.register('conversionListener', (e, p) => {
           if (e === 'Purchase') {
               if (!dataLayer) {
                   console.error('Google Tag (gtag) is not loaded. ');
               } else {
                   function gtag() { dataLayer.push(arguments); }
                   gtag('event', 'conversion', {
                       'send_to': conversion_id + '/' + conversion_label,
                       'value': p.revenue || 0,
                       'currency': p.currency || 'USD',
                       'transaction_id': p.orderId || p.id || ''
                   });
               }
           }
       });
}
   window.wixDevelopersAnalytics ?
   registerListener() :
   window.addEventListener('wixDevelopersAnalyticsReady', registerListener);
</script>
```

1. Replace the placeholder values with your values:  
   * **AW-CONVERSION\_ID:** Your Conversion ID from Google Ads  
   * **LABEL\_ID:** Your Label ID from Google Ads
2. Copy the entire code snippet.
3. [Go to Custom Code](https://manage.wix.com/my-account/site-selector/?siteType=HtmlWeb&actionUrl=https://www.wix.com/dashboard/{{metaSiteId}}/manage-website/embeds/?&title=Select%20a%20site&buttonText=Go+to+Custom+Code) in your site's dashboard.
4. Click **+ Add Custom Code** at the top right.
5. Click the **Code Type** tab, then scroll down and select **Marketing**.
6. Click the **Code Settings** tab and paste the code snippet into the **Paste the code snippet here** field.
7. Enter a name for your code in the **Name** field.  
**Tip:** Give it a name that is easy to recognize so you can quickly identify it later.
8. Select an option under **Add Code to Pages**:  
   * **All pages:** This adds the code to all of your site's pages, including any new pages that you create in the future. Choose whether to load the code only once per visit, or on each page your visitor opens.  
   * **Choose specific pages:** Use the drop-down menu to select the relevant pages.
9. Choose where to place your code under **Place Code in**:  
   * Head  
   * Body - start  
   * Body - end
10. Click **Apply**.

---

## Method 3 | Setting up conversions using Google Tag Manager

Google Ads conversion tracking is a way to measure the conversion actions that users take on your Wix site after they click or view your Google Ads. For example, a visitor might finalize a purchase after clicking an ad.

This method is designed for experienced users who want to use Google Tag Manager to track Google Ads conversion actions by setting up variables, triggers, and tags that use the Conversion ID and Label ID of the action you want to track.

> **Important:** By using this service, you are engaging directly with a third-party service provider. We recommend reviewing the service provider's privacy policy and terms of use prior to your use of such third-party service. You acknowledge that Wix is not liable for any loss or damage resulting from your use of such third-party service, including any liability arising from any personal data exchanged between you and such third-party.

> **Before you begin:**
>
> * [Create a conversion action](https://support.google.com/google-ads/answer/12216424?sjid=6783535481547499834-EU) in your Google Ads account. This gives you the Conversion ID and Conversion label that you need to use in Google Tag Manager to track the action.
> * You need to [connect Google Tag Manager to your site](https://support.wix.com/en/article/connecting-your-google-tag-manager-account-to-your-wix-site) before you can set up conversion tracking.

## Creating an eCommerce conversion based on purchase

After you've created your conversion action, set up 2 variables in your Google Tag Manager account. Then, create 2 triggers that use these variables so that you can track your conversion action. Finally, you can start tracking the conversion action by creating 2 tags.

> **Note:** Wix fires a special collection of business events that cover the recommended by Google conversions. Do not use the Thank You page capturing method to track eCommerce-based conversions.

Click the steps below to learn more.

**a | Create 2 variables**

1. [Go to Google Tag Manager](https://tagmanager.google.com/).
2. (If required) Select the container that you want to create variables in.
3. Click **Variables**.
4. Click **New** under **User-Defined Variables**.
5. Enter "dl\_transaction\_id" as the name for the variable.
6. Click **Choose a variable type to begin setup**.
7. Select **Data Layer Variable** under **Page Variables**.
8. Enter "ecommerce.purchase.actionField.id" under **Data Layer Variable Name**.
9. Click **Save**.
10. Click **New** under **User-Defined Variables**.
11. Enter "dl\_conversion\_value" as the name for the variable.
12. Click **Choose a variable type to begin setup**.
13. Select **Data Layer Variable** under **Page Variables**.
14. Enter "ecommerce.purchase.actionField.revenue" under **Data Layer Variable Name**.
15. Click **Save**.

**b | Create 2 triggers**

1. Click **Triggers**.
2. Click **New**.
3. Enter a name for the trigger.  
**Tip:** We recommend "tr\_pageview" or similar.
4. Click **Choose a trigger type to begin setup**.
5. Select **Custom Event** under **Other**.
6. Enter "Pageview" under **Event name**.
7. Click **Save**.
8. Click **New**.
9. Enter a name for the trigger.  
**Tip:** We recommend "tr\_purchase" or similar.
10. Click **Choose a trigger type to begin setup**.
11. Select **Custom Event** under **Other**.
12. Enter "purchase" under **Event name**.
13. Click **Save**.

**c | Create 2 tags**

1. Click **Tags**.
2. Click **New**.
3. Enter a name for the tag.  
**Tip** We recommend "conversion\_linker" or similar.
4. Click **Choose a tag type to begin setup**.
5. Select **Conversion Linker**.
6. Click **Choose a trigger to make this tag fire**.
7. Select **tr\_pageview**.
8. Click **Save**.
9. Click **New**.
10. Enter a name for the tag.  
**Tip:** We recommend "conversion\_tracking" or similar.
11. Click **Choose a tag type to begin setup**.
12. Select **Google Ads Conversion Tracking**.
13. Enter the following information:  
   * **Conversion ID:** Enter your Conversion ID from your Google Ads conversion action.  
   * **Conversion Label:** Enter your Conversion Label ID from your Google Ads conversion action.  
   * **Conversion Value:** Enter "dl\_conversion\_value".  
   * **Transaction ID:** Enter "dl\_transaction\_id".  
   * **Currency Code:** Enter your 3-character currency code.
14. Click **Choose a trigger to make this tag fire**.
15. Select **tr\_purchase**.
16. Click **Save**.

> **Create other types of eCommerce conversions:** Other types of eCommerce conversions you can set up are "View product page", "Add to cart", and "Begin checkout".

## Creating a form submission conversion

There are 2 types of events you can capture and track:

* **Lead event capturing:** Triggered when a site visitor submits a form.
* **Thank you page capturing:** Triggered if a site visitor is redirected to a form's Thank You page after submitting the form.

**Lead event capturing (recommended)**

**a | Create a variable**

1. [Go to Google Tag Manager](https://tagmanager.google.com/).
2. Click **Variables**.
3. Click **New** under **User-Defined Variables**.
4. Enter "dl\_event\_label" as the name for the variable.
5. Click **Choose a variable type** to begin setup.
6. Select **Data Layer Variable** under **Page Variables**.
7. Enter "event\_label" under **Data Layer Variable Name**.
8. Click **Save**.

**b | Create a trigger**

1. Click **Triggers**.
2. Click **New**.
3. Enter a name for the trigger.  
**Tip:** We recommend "tr\_form\_submit" or similar.
4. Click **Choose a trigger type** to begin setup.
5. Select **Custom Event** under **Other**.
6. Enter "lead" under **Event name**.
7. (Optional) If you want to track 2 or more forms separately, select **Some Custom Events**, dl\_event\_label contains “your form name”.  
**Note:** You can find your form's name in the [form's settings](https://support.wix.com/en/article/wix-forms-adding-and-setting-up-a-form-on-your-site#step-3-edit-your-forms-settings-and-save) in your Wix site's dashboard.  
![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2025/02/20/658b857d-3c85-45f5-a0b8-b51ca6d36396/9b6a7ab7-c69d-476f-878c-2dd9cd3ffe1b.png)
8. Click **Save**.

**Thank You page capturing**

**a | Create a Thank You page**

[Create a Thank You page](https://support.wix.com/en/article/wix-forms-customizing-the-success-message-and-thank-you-page-of-site-forms#creating-a-custom-thank-you-page) that your site visitors will be redirected to after successfully submitting a form.

**b | Create a trigger**

1. [Go to Google Tag Manager](https://tagmanager.google.com/).
2. Click **Triggers**.
3. Click **New**.
4. Enter a name for the trigger.  
**Tip:** We recommend "tr\_form\_submit" or similar.
5. Click **Choose a trigger type** to begin setup.
6. Select **Custom Event** under **Other**.
7. Enter "Pageview" under **Event name**.
8. Set the URL of the tracked Thank You page:  
   1. Select **Some custom events**.  
   2. Enter the **Page URL** that contains your Thank You page URL part.
9. Click **Save**.

## Creating click button conversions

Track conversions for when site visitors click phone, email, and WhatsApp buttons.

**a | Create a variable**

1. [Go to Google Tag Manager](https://tagmanager.google.com/).
2. Click **Variables**.
3. Click **New** under **User-Defined Variables**.
4. Enter "dl\_element-url" as the name for the variable.
5. Click **Choose a variable type** to begin setup.
6. Select **Data Layer Variable** under **Page Variables**.
7. Enter "gtm.elementUrl" under **Data Layer Variable Name**.
8. Click **Save**.

**b | Create a trigger**

1. Go to **Variables** and select **Built in variables**.  
**Note:** Make sure that all the click variables are selected.
2. Click **Triggers**.
3. Click **New**.
4. Select the **Click – Just links** trigger.
5. Enter a name for the trigger.  
**Tip:** We recommend "tr\_click\_email" or similar.
6. Under **This trigger fires on** enter the value for the relevant use case:  
   * **Email address:** mailto / or email address  
   * **Telephone number:** Tel: / or telephone number  
   * **WhatsApp:** wa.me

---

## FAQs

Click a question below to learn more about setting up Google Ads conversions.

**What is a conversion?**

A conversion is when a website visitor takes an action you want them to take, like buying something, filling out a form, or subscribing to a newsletter.

**Why should I track conversions?**

Tracking conversions helps you see which ads, keywords, and campaigns bring valuable customer actions. This information allows you to use your advertising budget more effectively and make better marketing decisions.

**How do I know which method to use?**

* Use Method 1 if you want a simple and straightforward setup through Google Analytics.
* Use Method 2 if you need more flexibility and precision in your conversion tracking.
* Use Method 3 if you are experienced and want to create custom conversions like button clicks and WhatsApp interactions.

**Do I need a Google tag for Method 2?**

Yes, you need a Google tag installed in Dashboard > Settings > Marketing Integration. The tag or its destinations should match the conversion ID in your code.

**Can I track multiple types of conversions?**

Yes, you can track multiple types of conversions by setting up different conversion actions in Google Ads or Google Tag Manager.
