Skip to main content

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

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

Last updated: 18-Nov-2022
Rate this article:

Overview 

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

Availability 

Google Analytics can be set for all 2Checkout accounts.

Implement Google Analytics in ConvertPlus and InLine Checkout

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

1. Navigate to your Google Analytics account.

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

3. To get your Google Analytics Tracking ID, go to Google 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.

google analytics without GTM.png

4. In your Google Analytics account, make sure you have Enhanced Ecommerce enabled. To enable it, navigate to Admin → View Settings → Ecommerce settings. Make sure the Enable Ecommerce & Enable Enhanced Ecommerce Reporting settings are both ON.

google analytics without GTM_1.png

5. In your Google Analytics account, make sure you exclude the 2Checkout domains from the referral list. Go to Admin → Admin → Property settings → Tracking info → Referral Exclusion List.

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

google analytics without GTM_2.png

Cross-domain tracking settings

For cross-domain tracking between your website and the 2Checkout shopping cart, additional settings are needed. The Google Analytics JavaScript tracking code on your own website must be updated to include a linker to the 2Checkout domains: secure.2checkout.com and tracking.avangate.net. 

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

The part highlighted in yellow represents the cross-domain tracking setting that needs to be added to the Google Analytics script on your website. 

GA_MEASUREMENT_ID from the Google Analytics script below is the Google Analytics Tracking ID, which you can find under Google Analytics → Admin → Tracking Info → Tracking Code section

<!-- 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 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. Log into 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

5. In the Google Analytics box, click on Edit. 

web analytics in Merchant Control Panel_Convertplus_6.png

6. Fill in the Google Analytics Tracking ID (Here is how you obtain itand click Save.

web analytics in Merchant Control Panel_Convertplus_7.png

7. Complete the integration by using the slider to activate Google Analytics.

web analytics in Merchant Control Panel_Convertplus_11.png

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

 

2. For fully enhanced eCommerce reporting in Google Analytics, it is recommended that you send information to Google 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.

 

Rate this article:
Logo of Verifone