Setting Up Google Ads Conversions
9 min read
In this article
- Method 1 | Import conversions from Google Analytics
- Method 2 | Implementing custom code
- Method 3 | Setting up conversions using Google Tag Manager
- FAQs
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.
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.
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:
- Go to Marketing Integrations in your site's dashboard.
- Click Connect under Google Tag.
Note: Google Tag unifies Google Analytics, Google Ads and other Google products. Learn more about Google Tag Unification. - Click Add Google Tag ID.
- Paste your Google ID in the pop-up.
Note: Make sure that there are no extra spaces before the code. - (Optional) Select the IP Anonymization checkbox if you want to hide your site visitors’ IP addresses from Google.
- Click Save.
- Set up key events in Google Analytics for the conversions you want.
- Go to your Google Ads account,
- Click Tools & Settings in the top right corner.
- Select Conversions under Measurement in the drop-down menu.
- Click Add conversion .
- Click Import.
- Select Google Analytics 4 properties (App or Web).
- Click Continue.
- Select the analytics events that you want to track.
- Click Import and continue.
- 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 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 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:
Leads
Purchases
- Copy the code snippet provided below into a text editor
1<script>
2 if (typeof conversion_id === 'undefined') {
3 //Replace 'AW-CONV-ID' with your conversion ID
4 var conversion_id = 'AW-CONV-ID'; //must be associated with Google Tag installed at Wix
5}
6 if (typeof conversion_label === 'undefined') {
7 //Replace 'CONVERSION-LABEL' with your conversion label
8 var conversion_label = 'CONVERSION-LABEL';
9}
10 function registerListener() {
11 window.wixDevelopersAnalytics.register('conversionListener', (e, p) => {
12 if (e === 'Lead') {
13 if (!dataLayer) {
14 console.error('Google Tag (gtag) is not loaded. ');
15 } else {
16 function gtag() { dataLayer.push(arguments); }
17 gtag('event', 'conversion', {
18 'send_to': conversion_id + '/' + conversion_label
19 });
20 }
21 }
22 });
23}
24 window.wixDevelopersAnalytics ?
25 registerListener() :
26 window.addEventListener('wixDevelopersAnalyticsReady', registerListener);
27</script>
- Replace the placeholder values with your values:
- AW-CONVERSION_ID: Your Conversion ID from Google Ads
- LABEL_ID: Your Label ID from Google Ads
- Copy the entire code snippet.
- Go to Custom Code in your site's dashboard.
- Click + Add Custom Code at the top right.
- Click the Code Type tab and select Marketing.
- Click the Code Settings tab and paste the code snippet into the text box.
- Enter a name for your code. Tip: Give it a name that is easy to recognize so you can quickly identify it later.
- 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.
- Choose where to place your code under Place Code in:.
- Head
- Body - start
- Body - end
- 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 we are 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 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 before you can set up conversion tracking.
Create 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
b | Create 2 triggers
c | Create 2 tags
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".
Create 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
b | Create a trigger
Thank You page capturing
a | Create a Thank You page
b | Create a trigger
Create click button conversions
Track conversions for when site visitors click phone, e-mail, and WhatsApp buttons.
a | Create a variable
b | Create a trigger
FAQs
Click a question below to learn more about setting up Google Ads conversions.
What is a conversion?
Why should I track conversions?
How do I know which method to use?
Do I need a Google tag for Method 2?
Can I track multiple types of conversions?