Integrate your Basket with Google Analytics (GA4)

Integrate your Basket with Google Analytics (GA4)

The Google Analytics module allows you to synchronise your Shopping Basket with your Google Analytics account to gain valuable statistics. Both Google Analytics and Google Tag Manager are supported!

Google Analytics 4 logo

What is Google Analytics 4?

Following Google’s depreciation of Universal Analytics (UA) in June 2023, the accessplanit Google Analytics integration has been updated to instead integrate with Google Analytics 4 (GA4).

UA focused on tracking user interactions on websites and mobile apps, to do this it used cookies and unique identifiers to track each user and their journey across your website and apps. As it reported on user behavior and conversions, it was very well-suited for tracking web analytics! GA4

GA4, however is even further evolved! It provides a more comprehensive / user-centric understanding of your customers' journeys across multiple platforms; including your website, apps, and any other digital channels (such as your accessplanit shopping basket). Here are some of the key benefits of GA4:

  1. GA4 is focused on event-based tracking which means that you can report more closely on specific activities that your customers are completing (such as adding items to their basket).

  2. As GA4 does not use solely cookies to track your users, it can readily track your customers across multiple devices and platforms, it also leads to more accurate data as cookies can be deleted and/or blocked!

  3. Where UA tracks user sessions i.e. each visit they make to your website, GA4 tracks users over time! This means that you can better understand your complete customer journey and their interactions over time, allowing you to provide a more comprehensive and personalised experience to encourage returning users.

Your accessplanit integration with GA4 still tracks page hits and user behaviour as it did for UA, however the new integration with GA4 also tracks ecommerce activity such as the value of baskets and purchases, and we have implemented support for key basket events such as tracking purchases, and items being added and removed from the basket!

This guide will talk you through each step of the GA4 setup through Google Analytics and Google Tag Manager, to ensure everything is set up correctly and to gain all the new benefits from the integration!


Using the Google Analytics Module

Please Note

Google Analytics is an additional module, please have a chat to your Customer Success Manager if you would like to add this to your platform!

To use the Google Analytics module, you will require a GA4 Account and Google Analytics enabled in your platform.


Setting up your Google Analytics 4 Account

Please Note

this step is only required if you do not yet have an existing Google Analytics 4 Property to use for your integration with accessplanit

Please follow one of the below processes to set up your GA4 Account. If you already have a Universal Analytics property with Google Analytics, please follow the first process. If you do not currently use Google Analytics, please follow the second process.

 

If you have an existing Universal Analytics Property within Google Analytics that you would like to update to GA4, then please follow these steps:

  1. Login to your Google Analytics account

  2. You should be prompted to migrate your existing UA property, selecting your property followed by Save will complete this process for you

     

  3. If you are not prompted to migrate your existing property, at the bottom right of your Google Analytics view, click on the Settings cog and select “Admin”

     

  4. Select the “GA4 Setup Assistant”

     

  5. Select the “I want to create a new Google Analytics 4 property” > “Get started”

     

  6. Click Create & Continue

     

  7. The accessplanit Google Analytics Integration works with Google Tag Manager so please close the ‘Set up Google Tag’ step.

  8. To access your Measurement ID (this will be required in your accessplanit platform), click on the Admin option at the bottom right of your Google Analytics login.

  9. Click on the Data Streams option within your Property

     

  10. Click on the arrow icon on the right to view more details about your stream

    Please note - if you already have a Data Stream for your website, you will need to include both your accessplanit platform and website within one Data Stream. There are instructions for this in step 5 "Setting up Linked Domains”.

     

  11. Copy and keep your Measurement ID somewhere safe as you will need to add this into your accessplanit platform in step 3

     

  12. You can now move on to setting up your Google Tag Manager.

 

 

If you do not yet have a Google Analytics account, then please follow these steps to set up your account and your GA4 Property to track analytics within your accessplanit basket:

  1. Open Google Analytics and follow the steps to create a new Account

  2. Provide a Property to capture your accessplanit basket analytics

     

  3. Complete the remaining steps of the Google Analytics set-up

  4. Set up your data stream using your accessplanit platform’s URL

    1. Please note - if you want to track analytics in your website and your accessplanit platform together, you will need to include both your accessplanit platform and website within one Data Stream. There are instructions for this in step 5 "Setting up Linked Domains”.

     

  5. Once you have created your data stream, click on the arrow icon on the right to view more details about your stream

     

  6. Copy and keep your Measurement ID somewhere safe as you will need to add this into your accessplanit platform in step 3

     

  7. You can now move on to setting up your Google Tag Manager.

 

 


Setting up your Google Tag Manager

Please Note

This step is required if you use Google Tag Manager and you would like to track ecommerce events such as purchases.

If you do not have a Tag Manager account, please follow both of the below processes to set up your Google Tag Manager.

If you already use Tag Manager, please skip past the “I am not currently using Tag Manager - Setting up Tag Manager” process to the “I am currently using Tag Manager - Upgrade your existing Tag Manager to work with GA4” process.

 

If you are not yet using Google’s Tag Manager with your accessplanit platform, please follow these steps before moving onto the next process to set up each of your Tags and Triggers for the integration:

  1. Open Google’s Tag Manager

  2. Click ‘Create Account

     

  3. Enter an Account Name, select your Country, and enter a Container name

     

  4. Click ‘Create

     

  5. Review the Terms of Service and proceed

     

  6. Once you have completed your Account creation, a pop-up will appear containing your Tag Manager code, copy both the <head> and the <body> code and save them somewhere safe as they will be added to your accessplanit platform later.

     

  7. You can now move onto setting up your Tags and Triggers in the “I am currently using Tag Manager - Upgrade your existing Tag Manager to work with GA4” process below.

 

 

If you are already using Google’s Tag Manager with your accessplanit platform or you have just set up your Tag Manager Account, and you would like to track ecommerce events with GA4, you will need to create several Tags and Triggers within your Google Tag Manager.

1 - Tag: Google Analytics: GA4 Configuration

This tag is required to connect your Tag Manager to your Google Analytics 4 property, this tag is not optional.

  1. Open Google’s Tag Manager

  2. Open the Tags menu option

     

  3. Click the ‘New’ button to add a new Tag

     

  4. Select the Tag Type “Google Analytics: GA4 Configuration

    1. Paste your Google Analytics Measurement ID into the Measurement ID field

    2. Save your Tag

       

  5. Click into the Triggering options at the bottom of the page

     

  6. Select the All Pages trigger

     

  7. Enter a label for your Tag and Save

 

You will now create a new Tag and Trigger for each event that you would like to track.

The following events are tracked in your accessplanit basket: Purchases, Add to Cart, Remove from Cart, Initiate the Checkout Process.


2 - Tag: GA4 Purchase Event

This tag is required to track when your customers complete a purchase through your accessplanit Shopping basket/Checkout. We strongly recommend tracking this event.

  1. Within the Tags menu option

     

  2. Click the ‘New’ button to add a new Tag

     

  3. Select the Tag Type ‘Google Analytics: GA4 Event

    1. Configuration Tag: Select your GA4 Configuration Tag

    2. Event Name: purchase
      Please note: the Event Name should match the exact wording above

    3. Event Parameters:
      These are the values used for your event to track individual bits of information. You will need to create variables for each Event Parameter.

      1. Click ‘Add Row', type 'transaction_id’ into the Parameter Name, click on the add button within the Value setting

         

      2. Click the + icon at the top right of the ‘Choose a Variable’ screen

      3. Add a new ‘Data Layer Variable’

      4. Set the Data Layer Variable Name to ‘transaction_id’

      5. Click Save

      6. Ensure this Variable is selected as your Value for your transaction_id Event Parameter

         

      7. Repeat the steps i to vi to set up three more Event Parameters for this Event:

        1. currency

        2. value

        3. tax

         

        You may wish to add some default settings in for each of your parameters, for example if no currency is provided you can default this to ‘GBP’ or ‘USD’. To do this, access the Format Value section within the data variable settings.

    4. Once you have added all of the Event Parameters scroll down to More Settings and check the ‘Send Ecommerce data’ and select ‘Data Layer’.

       

    5. Enter a label for your Tag and Save without Triggers


3 - Tag: GA4 Add to Cart Event

This tag is required to track when your customers add items to their accessplanit Shopping basket/Checkout. If you are not interested in tracking this event, you do not need to configure this tag.

  1. Within the Tags menu option

     

  2. Click the ‘New’ button to add a new Tag

     

  3. Select the Tag Type ‘Google Analytics: GA4 Event

    1. Configuration Tag: Select your GA4 Configuration Tag

    2. Event Name: add_to_cart
      Please note: the Event Name should match the exact wording above

    3. Event Parameters:
      These are the values used for your event to track individual bits of information. You will need to create variables for each Event Parameter.

      1. Click ‘Add Row', type 'Value’ into the Parameter Name, click on the add button within the Value setting

         

      2. Select your existing ‘value’ Data Layer Variable

      3. Repeat the steps i & ii to set up a currency Event Parameter for this Event

         

    4. Once you have added all of the Event Parameters scroll down to More Settings and check the ‘Send Ecommerce data’ and select ‘Data Layer’.

       

    5. Enter a label for your Tag and Save without Triggers

 


4 - Tag: GA4 Remove from Cart Event

This tag is required to track when your customers remove items from their accessplanit Shopping basket/Checkout. If you are not interested in tracking this event, you do not need to configure this tag.

  1. Within the Tags menu option

     

  2. Click the ‘New’ button to add a new Tag

     

  3. Select the Tag Type ‘Google Analytics: GA4 Event

    1. Configuration Tag: Select your GA4 Configuration Tag

    2. Event Name: remove_from_cart
      Please note: the Event Name should match the exact wording above

    3. Event Parameters:
      These are the values used for your event to track individual bits of information. You will need to create variables for each Event Parameter.

      1. Click ‘Add Row', type 'Value’ into the Parameter Name, click on the add button within the Value setting

         

      2. Select your existing ‘value’ Data Layer Variable

      3. Repeat the steps i & ii to set up a currency Event Parameter for this Event

         

    4. Once you have added all of the Event Parameters scroll down to More Settings and check the ‘Send Ecommerce data’ and select ‘Data Layer’.

       

    5. Enter a label for your Tag and Save without Triggers

 


5 - Tag: GA4 Begin Checkout Event

This tag is required to track when your customers open the accessplanit Shopping basket/Checkout. If you are not interested in tracking this event, you do not need to configure this tag.

  1. Within the Tags menu option

     

  2. Click the ‘New’ button to add a new Tag

     

  3. Select the Tag Type ‘Google Analytics: GA4 Event

    1. Configuration Tag: Select your GA4 Configuration Tag

    2. Event Name: begin_checkout
      Please note: the Event Name should match the exact wording above

    3. Event Parameters:
      These are the values used for your event to track individual bits of information. You will need to create variables for each Event Parameter.

      1. Click ‘Add Row', type 'Value’ into the Parameter Name, click on the add button within the Value setting

         

      2. Select your existing ‘value’ Data Layer Variable

      3. Repeat the steps i & ii to set up a currency Event Parameter for this Event

         

    4. Once you have added all of the Event Parameters scroll down to More Settings and check the ‘Send Ecommerce data’ and select ‘Data Layer’.

       

    5. Enter a label for your Tag and Save without Triggers

 


6 - Trigger: Purchase

If you have set up the Purchase Tag in step 2, this trigger is required.

  1. Within the Triggers menu option

     

  2. Click the New button to add a new Trigger

     

  3. Select the Trigger Type ‘Custom Event’

     

  4. Enter the Event name ‘purchase’ and set this to trigger on All Custom Events

     

  5. Give your Purchase Trigger a name and Save

     

  6. Once you have saved your trigger, you need to link it to your Purchase Tag and Google Analytics GA4 Configuration Tag

  7. Within the Tags page

     

  8. Click to open your Purchase Tag

     

  9. Click into the Triggering section at the bottom of the page

     

  10. Select your Purchase Trigger

     

  11. Save the changes to your Purchase Tag

  12. Click to open your Google Analytics GA4 Configuration Tag

     

  13. Click into the Triggering section at the bottom of the page to add an additional Trigger for this Tag

     

  14. Select your Purchase Trigger

     

  15. Save the changes to your Google Analytics GA4 Configuration Tag

 


7 - Trigger Add to Cart

If you have set up the Add to Cart Tag in step 3, this trigger is required.

  1. Within the Triggers menu option

     

  2. Click the New button to add a new Trigger

     

  3. Select the Trigger Type ‘Custom Event’

     

  4. Enter the Event name ‘add_to_cart’ and set this to trigger on All Custom Events

     

  5. Give your Purchase Trigger a name and Save

     

  6. Once you have saved your trigger, you need to link it to your Add to Cart Tag and Google Analytics GA4 Configuration Tag

  7. Within the Tags page

     

  8. Click to open your Add to Cart Tag

     

  9. Click into the Triggering section at the bottom of the page

     

  10. Select your Add to Cart Trigger

     

  11. Save the changes to your Add to Cart Tag

  12. Click to open your Google Analytics GA4 Configuration Tag

     

  13. Click into the Triggering section at the bottom of the page to add an additional Trigger for this Tag

     

  14. Select your Add to Cart Trigger

     

  15. Save the changes to your Google Analytics GA4 Configuration Tag


8 - Trigger: Remove from Cart

If you have set up the Remove from Cart Tag in step 4, this trigger is required.

  1. Within the Triggers menu option

     

  2. Click the New button to add a new Trigger

     

  3. Select the Trigger Type ‘Custom Event’

     

  4. Enter the Event name ‘remove_from_cart’ and set this to trigger on All Custom Events

     

  5. Give your Purchase Trigger a name and Save

     

  6. Once you have saved your trigger, you need to link it to your Remove From Cart Tag and Google Analytics GA4 Configuration Tag

  7. Within the Tags page

     

  8. Click to open your Remove From Cart Tag

     

  9. Click into the Triggering section at the bottom of the page

     

  10. Select your Remove From Cart Trigger

     

  11. Save the changes to your Remove From Cart Tag


Contact Our Team

If you can't find what you're looking for, access our Support Portal, and our team of experts will be happy to help!

Is it your first time contacting the team? Learn how to raise a support ticket.

Follow Us

Facebook|height=20 LinkedIn|height=20 Instagram|height=20 Twitter|height=20

Copyright © 2025 accessplanit.

Social media icons by icons8.com