> For the complete documentation index, see [llms.txt](https://docs.2checkout.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.2checkout.com/analytics/analytics/implement-google-analytics-4-in-convertplus-and-inline-checkout-without-gtm.md).

# Implement Google Analytics 4 in ConvertPlus and InLine Checkout (without GTM)

## Overview

***

You can implement Google Analytics 4 without the Google Tag Manager (GTM) to help you track and monitor your ConvertPlus and InLine checkout orders in order to improve the shopping experience and increase conversion rate.

## Availability

***

Google Analytics 4 can be set for all 2Checkout accounts.

## Implement Google Analytics 4 in ConvertPlus and InLine Checkout

***

Follow these steps to implement Google Analytics 4 in ConvertPlus and InLine Checkout:

1. Navigate to your [Google Analytics 4 account](https://analytics.google.com/analytics/web/).

2. To get your Google Analytics 4 Measurement ID, go to **Google Analytics 4** → **Admin** → **Data Streams** → **Web** → Select your web property. Under *Measurement ID* you will find the code you need to copy and paste into your [Merchant Control Panel](https://secure.2checkout.com/cpanel/web_analytics_settings.php).<br>

   ![](https://content.gitbook.com/content/dnV9OOb1DpgpbHZ17v2Y/blobs/99L4q1azsuJgtOSSsix3/Implement%20Google%20Analytics%20%20Web%20Stream%20Details.PNG)

3. Copy your Google Analytics 4 Measurement ID.

4. Use it in your [2Checkout Merchant Control Panel](https://secure.2checkout.com/cpanel/web_analytics_settings.php) to set up Google Analytics 4 for your ConvertPlus and InLine carts.

## Cross-domain tracking settings

***

Google Tag Manager code is placed in an iframe with the domain tracking.avangate.net. In order for Google to recognize that a visitor is the same when entering your website and then entering the shopping cart, you need to setup cross-domain measurement in Google Analytics 4 Admin, according to information provided by [Google](https://support.google.com/analytics/answer/10071811?hl=en).

* In *Admin*, click **Data Streams**, click **Web** and then select your web data stream.&#x20;
* In the *web stream* details, click **Configure tag settings** (at the bottom).&#x20;
* In the *Settings* section, click **Configure** your domains.

![](https://content.gitbook.com/content/dnV9OOb1DpgpbHZ17v2Y/blobs/FGEglWEW3FIF0J1Lb6V2/Implement%20Goggle%20Analytics%204%20Confgure%20Your%20Domains.PNG)

Under Include domains that match ANY of the following conditions, choose match type **Contains** and under *Domain*, enter the identifier of your domain (ex. yourwebsite.com) and then click **Add Condition** to add the next domains – tracking.avangate.net and secure.2checkout.com.

![](https://content.gitbook.com/content/dnV9OOb1DpgpbHZ17v2Y/blobs/ktdKhBIogGYkRTWj2oty/Implement%20Goggle%20Analytics%204%20Confguration.PNG)

## Merchant Control Panel Settings

***

The Analytics section in your Merchant Control Panel allows you to integrate Google Analytics 4 in the ConvertPlus or InLine ordering engines and thus track the behavior of your shoppers on the 2Checkout pages.

Follow these steps to complete your analytics integration:

1. Log into your [Merchant Control Panel](https://secure.2checkout.com/cpanel).

2. Navigate to **Setup** → **Ordering options**.

3. Click on the **Analytics** tab.

4. Click on the **ConvertPlus and InLine Checkout** tab.<br>

   ![](https://content.gitbook.com/content/dnV9OOb1DpgpbHZ17v2Y/blobs/eqiCnRg35IyK8d9ElMlu/web%2Banalytics%2Bin%2BMerchant%2BControl%2BPanel_5.png)

5. In the *Google Analytics* box, click **Edit**.<br>

   ![](https://content.gitbook.com/content/dnV9OOb1DpgpbHZ17v2Y/blobs/R6JSQUWPqY3faws327gU/Implement%20Goggle%20Analytics%204%20%20GA4%20Box.png)

6. Fill in the *Google Analytics 4 Measurement ID* and click **Save**.<br>

   ![](https://content.gitbook.com/content/dnV9OOb1DpgpbHZ17v2Y/blobs/w6EMucOGn5dJrXLzygrm/Implement%20Goggle%20Analytics%204%20%20Measurement%20ID%202.png)

7. Complete the integration by using the slider to activate Google Analytics 4.<br>

   ![](https://content.gitbook.com/content/dnV9OOb1DpgpbHZ17v2Y/blobs/1eFHesGblVeastO75Ce4/Implement%20Google%20Analytics%204%20%20Slider.png)

## Checking a purchase in Google Analytics 4

***

Place an order on the 2checkout shopping cart, using a ConvertPlus or Inline cart.

Log into your Google Analytics 4, go to **Monetization** > **Ecommerce purchases**.

![](https://content.gitbook.com/content/dnV9OOb1DpgpbHZ17v2Y/blobs/nobC9nKZ9rxkoG1fWryT/Implement%20Google%20Analytics%20E%20Commerce%20Purchases.PNG)

You will see the number of purchases for your products and the revenue from your purchases.

![](https://content.gitbook.com/content/dnV9OOb1DpgpbHZ17v2Y/blobs/tq8pVRzzaL7QOkJstB0H/Implement%20Google%20Analytics%20Test%20Product.PNG)

{% hint style="info" %}

#### Tips

* The 2Checkout data layer for Google Analytics 4 tracking is placed in an iFrame. This data layer contains eCommerce information built on the structure required by Google Analytics 4 reporting for the following events: checkout, view item list (for cross-sell products), add to cart (for cross-sell products), purchase and remove from cart.
* For fully enhanced eCommerce reporting in Google Analytics 4, it is recommended that you send information to Google Analytics 4 from your website that includes for example product views, select product, add to cart. More information on enhanced eCommerce reporting can be found [here](https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag).
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.2checkout.com/analytics/analytics/implement-google-analytics-4-in-convertplus-and-inline-checkout-without-gtm.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
