1. Documentation /
  2. Pixel Manager Pro for WooCommerce /
  3. PMW Plugin Configuration /
  4. Google Analytics

Google Analytics

Connect to a new Google Analytics property

↑ Back to top

This guide shows how to create entirely new Google Analytics properties (Universal and GA4), and how to retrieve the relevant property IDs for the WooCommerce Pixel Manager.

INFO

If you already have existing Google Analytics properties, skip to the next guide.

Step 1

Step 2

Step 3

Step 4

Connect an existing Google Universal Analytics property

↑ Back to top

Open the admin interface of your Google Analytics account and select your Google Universal Analytics property.

Step 1

Step 2

Connect an existing Google Analytics 4 property

↑ Back to top

Open the admin interface of your Google Analytics account and select your Google Analytics 4 property.

Step 1

Step 2

Step 3

Google Analytics 4 API Secret

↑ Back to top

NOTE

Setting the GA4 API secret will enable the measurement protocol for GA4.

INFO

The GA4 Measurement protocol is still in beta. It works quite well, but it might have a few quirks here and there.

1. Open the admin interface for the GA4 property.

2. Open the website data stream.

3. Open the API secret setup menu.

4. Start creating a new API secret.

5. Give the new API secret a name. Use the plugin name. It will help you to associate which API key is being used by which app.

6. Copy the new API secret.

7. Paste the new API secret in the plugin and save it. You’ll find the API secret setting under Advanced > Google in the plugin.

Google Analytics 4 Data API

↑ Back to top

INFO

Available from version 1.26.0

The Pixel Manager is able to connect to the GA4 Data API and retrieve reporting data through it.

The first report available is the order source attribution report. It shows the order source attribution using the connected GA4 accounts attribution method, which is data-driven by default.

INFO

GA4 can take up to 24 hours to process the attribution before it is available on a specific order.

Order window with GA4 order attribution enabled
GA4 order attribution detail window

GA4 Property ID​

↑ Back to top
  1. Open the GA4 admin settings and then the property settings.
GA4 admin settings
  1. Copy the property ID from the top right.
GA4 admin copy the property settings
  1. In the Pixel Manager open > Advanced > Google and paste the property ID into the GA4 property ID field.
Paste the GA4 property into the Pixel Manager

GA4 Data API Credentials​

↑ Back to top

Enabling access to the GA4 property from which you want to retrieve data is a two-part process.

In the first part, we need to create access credentials, download them to the computer and upload them into the Pixel Manager.

In the second part, we need to add the client_email from the access credentials to the GA4 property, which will authorize the retrieval of data from that GA4 property.

  1. Open the GA4 API Quickstart manualAPI Quickstart
  2. Click the Enable the Google Analytics Data API v1 button.
Click the 'Enable the Google Analytics Data API v1' button
  1. You will be prompted to enter a name for the project. Give it a name that contains the name of the website, like “GA4 example-com” (dots are not allowed, so we exchanged it with a dash). Then click NEXT.

INFO

Theoretically, you can use the same credentials for multiple websites. But, for long-term setup, we recommend creating separate credentials for each website. If you ever decide in the future to delete one of the credentials, because of a change of ownership or any other reason, only that particular website credentials will have to be recreated.

INFO

When creating the access credentials, they will be enabled on your personal Google account. That’s why it is recommended that the credentials are created by the owner of the website. If you are working for an agency or if you are a freelancer, ask the owner of the website to create the credentials and upload them into the Pixel Manager.

GA4 Data API credentials project prompt
  1. Download the credentials to your computer.
GA4 Data API credentials download window
  1. In the Pixel Manager go to > Advanced > Google and import the credentials.
Pixel Manager GA4 credentials import settings
  1. Copy the client_email from the credentials settings.
Pixel Manager GA4 credentials client email
  1. Go to your GA4 admin settings and open the Property Access Management.
GA4 admin settings property access management window
  1. Click the big plus sign to add a new user.
GA4 admin settings property access management add new user button
  1. Paste the client_email into the email addresses box. Make sure to only give it the Viewer role. And finally, click Add to add this new user to this GA4 property.
GA4 admin settings property access management add new user settings

Enhanced E-Commerce Funnel Setup

↑ Back to top

NOTE

The plugin outputs four standard funnel events. They need to be configured within Google Analytics. Once done, they will be displayed in the Google Analytics > Conversions > E-commerce > Checkout Behaviour report

1. Open the admin panel in Google Analytics. Chose your GA Universal property, then the view and then open the E-Commerce Settings.

2. Configure the funnel steps and save them. For step 1 set checkout started. For step 2 set billing email added. For step 3 set payment provider chosen. And for step 4 set order placed.

WooCommerce

The most customizable eCommerce platform for building your online business.

  • 30-day money-back guarantee
  • Support teams across the world
  • Safe and secure online payment