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

Overview

You can implement Google Universal Analytics 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.

This documentation refers to Google Universal Analytics, which is a deprecated version that will be sunset starting July 1st 2023 for free Universal Analytics properties and starting July 1st 2024 for 360 Universal Analytics properties. We strongly recommend you to migrate to Google Analytics 4 as soon as possible.

Availability

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

Implement Google Universal Analytics in ConvertPlus and InLine Checkout

1

Get your Google Universal Analytics Tracking ID

  1. To get your Google Universal Analytics Tracking ID, go to Google Universal Analytics → Admin → Tracking Info → Tracking Code. Under Tracking ID you will find the code you need to copy and paste into your Merchant Control Panel.

Note: Copy your Google Universal Analytics Tracking ID and use it in your 2Checkout Merchant Control Panel to set up Google Universal Analytics for your ConvertPlus and InLine carts.

google analytics without GTM.png
2

Enable Enhanced Ecommerce and set referral exclusions

  1. In your Google Universal Analytics account, make sure you have Enhanced Ecommerce enabled:

    • Go to Admin → View Settings → Ecommerce settings.

    • Make sure Enable Ecommerce & Enable Enhanced Ecommerce Reporting are both ON.

google analytics without GTM_1.png
  1. Exclude 2Checkout domains from the referral list:

    • Go to Admin → Property settings → Tracking info → Referral Exclusion List.

    • Add your website’s domain and the following 2Checkout domains: secure.2checkout.com and tracking.avangate.net.

google analytics without GTM_2.png
3

Cross-domain tracking settings (gtag.js example)

For cross-domain tracking between your website and the 2Checkout shopping cart, update the Google Analytics JavaScript tracking code on your website to include a linker to the 2Checkout domains: secure.2checkout.com and tracking.avangate.net.

Below is an example of the Google Universal Analytics tracking script for gtag.js. 2Checkout Google Universal Analytics tracking implementation is based on gtag.js.

GA_MEASUREMENT_ID in the script below is the Google Universal Analytics Tracking ID (found under Google Universal Analytics → Admin → Tracking Info → Tracking Code).

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gta...MEASUREMENT_ID"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'GA_MEASUREMENT_ID', {
     'linker': {
            'domains': ['secure.2checkout.com', 'tracking.avangate.net']
        }
    });

</script>

Merchant Control Panel Settings

The Analytics section in your Merchant Control Panel allows you to integrate Google Universal Analytics 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

Access the Analytics integration

  1. Log in tointo your Merchant Control Panel.

  2. Navigate to Setup → Ordering options.

  3. Click on the Analytics tab.

  4. Click on the ConvertPlus and InLine Checkout tab.

web analytics in Merchant Control Panel_5.png
2

Set up Google Universal Analytics

  1. In the Google Universal Analytics box, click on Set up.

Google Universal Analytics without GTM - Set up
  1. Fill in the Google Universal Analytics Tracking ID (Here is how you obtain it) and click Save.

ConvertPlus & Inline Checkout Google Universal Analytics Tracking ID
  1. Complete the integration by using the slider to activate Google Universal Analytics.

ConvertPlus & Inline Checkout Activate Google Universal Analytics
  • The 2Checkout data layer for Google Universal Analytics tracking is placed in an iFrame. This data layer contains eCommerce information built on the structure required by Google Universal Analytics reporting for the following events: checkout, purchase and remove from cart.

  • For fully enhanced eCommerce reporting in Google Universal Analytics, it is recommended that you send information to Google Universal Analytics from your website that includes product impression, product detail and add to cart. More information on enhanced eCommerce reporting can be found here: https://developers.google.com/analytics/devguides/collection/gtagjs/enhanced-ecommerce

Related documentation

Last updated

Was this helpful?