Write Review

How To Integrate Google Adwords and Google Analytics with Magento?

Having a good website for your business is one thing, but you also need to optimize your content, analyze traffic, and data collected to translate it into something useful for your business. Google Analytics and Google Adwords can help you do all that. These two tools can be significant resources for your Magento Store.

This tutorial will show you how to integrate Google Adwords and Google Analytics for your Magento 2 website.

Integrating Google Analytics On Magento 2 Website

>Google analytics allows you to access addition custom features and metrics to track your website performance. It also supports mobile interactions and provides access to current updates.

To integrate Google Analytics on your site, follow the following steps:

Step 1- Signing Up For Google Analytics.

To sign up for a new Google Universal Analytics account, go Google Analytics official page and click the Analytics tab in the top right corner of the page.

Then, log in to your Gmail account. If you don’t have one, start by creating it.

Once you have successfully logged in to your Gmail account, click Sign up to access your account.

Step 2 - Connecting The Magento Website To Google Analytics

To connect your store to Google Analytics, enter Magento store details including the website name, account name, and website URL, etc. Once you have provided these details, tap the Get Tracking ID button.

Then press the I Accept button to accept the terms and conditions.

Now Magento store will be successfully connected to Google Analytics and you will access the Tracking ID page, Make sure you copy the Tracking ID.

Step 3 - Setting The Magento Configuration.

Now go to your Magento 2 service and log in to the Admin panel. To do so, click the Stores tab. Under the Settings bar,  select Configuration.

Then under Sales, select Google API.

On this page, click the Google Analytics section and do the following:

  • Enable the Google Universal Analytics by selecting Yes on the checkbox
  • To apply A/B testing and other necessary performance assessments on your site, ensure the Enable Content Experiments section is set to Yes.
  • Enter the Universal Analytics ID in the Account Number section.
  • To complete the process, click the Save Config button.

Now you’re done! Go ahead and launch Magento and navigate to analytics. You will see your traffic status which may not be too much since you’re just getting started with tracking.

Setting Google Adwords In Magento 2

Let’s now look at how to set up Google Adwords service with Magento 2. Google Adwords is used in ads placement in Google Search results, with essential tools to help run the campaigns. <

So, to connect Google Adwords to a Magento 2 site, follow these simple steps:

Step 1- Creating Your Google Account

Go to Google Adwords and create an account.

Step 2 - Configuring Google Adwords In Magento 2 Website

Go to Magento admin panel, and navigate to the STORES section. Under the Settings, select Configuration.

On the left menu, click the SALES section, then a drop-down menu will appear. Select Google API.

Now, open the Google Adwords area and set Enable tab to Yes.

Enter the particulars in the following sections: Conversion ID, Conversion Language, Conversion Format, Conversion Color, Conversion Label, and the Conversion Value Type.

Finally, tap the Save Config to finish.


Now, you have successfully configured the two popular Google tools - Google Analytics and Google Adwords in the Magento back-end. If you run into problems while executing these steps, feel free to contact us for help.

Check out these top 3 Magento hosting services:

Was this article helpful?