Google Analytics & Bold Cashier

Overview

Bold Cashier can be integrated with Google Analytics to track your customer's journey throughout your store. You can use this helpful eCommerce tool to better understand where your customers may be leaving your store, and where you may need to make changes to improve conversions.

When Google Analytics is set up with Cashier and Shopify, it will track your customers activity from your store to the checkout. By default, Google Analytics will track your customers entering address, entering payment information, and a successful checkout.

 


 

Setup

To get started with connecting your Google Analytics account with Bold Cashier, please follow these steps:

  1. From Shopify's admin, select Apps.
  2. Select Bold Cashier.
  3. Select Settings, then Analytics.
  4. Enter your Google Analytics Tracking ID.
  5. Navigate to your Google Analytics admin, select Admin > Ecommerce Settings.
  6. Turn on Enable Ecommerce & Enable Enhanced Ecommerce Reporting.
  7. Choose Add Funnel Step (optional).
  8. Enter your label names (optional).
  9. Add all of the labels, then select Save.

 


 

Enhanced Ecommerce

Cashier uses Enhanced Ecommerce for tracking within Google Analytics. You can choose whether or not to use this feature with your Google Analytics integration, but we do suggest you utilize it.

When using Ecommerce tracking, Google Analytics is able to track additional information such as your Shopify domain, Cashier's order number, the tax and order total, shipping cost total, and the product information (ID's, titles, quantities, prices, and variant titles).

Enhanced Ecommerce adds the ability to track funnels. You can also use the following three funnel steps to track the corresponding steps for entering shipping address, payment information, and purchase complete.

 


 

Creating Goals

Using goals in Google Analytics helps allow you to measure how well your store is doing based on your target objectives.

Cashier tracks the different pages your customers land on and these are sent as "page views" to Google Analytics. The pages that will send a "page view" to google analytics are:

  • "/customer_information"
  • "/shipping_method"
  • "/payment_method"
  • "/confirmation_page"

Please know that Goals within Google Analytics are currently incompatible with Cashier's one-page checkout, as the steps are based on page views.

 


 

Setup

To create goals within your Google Analytics, please follow these steps:

  1. Navigate to your Google Analytics Admin, and select Admin > Goals.
  2. Select New Goal.
  3. Select Custom under Goal Setup. Then click Continue.
  4. Under Goal Description, set a Name (which could be anything you choose). For Type select Destination, then Continue.
  5. Under Goal Details, set the Destination as Regular expression and /confirmation.
  6. Turn funnels on, then set the funnel steps.
    From here, you can choose the names and funnel steps that you would like. Below are our suggestions for a basic funnel:
    Creating_Funnels_Google_Analytics.png
  7. Select Save.

 


 

Google Analytics Scripts

Bold Cashier uses scripts to send page views and events to Google Analytics. The default script that Bold Cashier sends for Google Analytics is as follows:

ga('require', 'ec');

ga('set', 'currencyCode', BOLD.order.currency);

BOLD.order.line_items.forEach(item => {
ga('ec:addProduct', {
id: item.sku || null,
name: item.product_title,
variant: item.variant_title,
price: GoogleAnalytics.formatCurrency(item.price),
quantity: item.quantity,
});
});

ga('ec:setAction', 'purchase', {
id: BOLD.order.id,
revenue: GoogleAnalytics.formatCurrency(BOLD.order.total),
shipping: GoogleAnalytics.formatCurrency(BOLD.order.total_shipping),
tax: GoogleAnalytics.formatCurrency(BOLD.order.total_tax),
});

ga('send', 'event', 'Checkout', 'Successful Checkout');

If you believe that there are page views and events not being sent, there are tools available to help you troubleshoot.

 


 

Check the Analytics ID

If your Google Analytics ID is inputted incorrectly, it could cause this integration to not be working. The format for the ID is generally UA-########-#, where ########-# is replaced by the number associated with your Properties and App. This ID will have to match in both Bold Cashier and Shopify.

There should not be any whitespaces before, after, or within the ID above. When an ID is incorrect, it could result in all of your customers showing as abandoning their checkout.

If there is nothing in the Custom Tracking Scripts field while this feature is enabled, it will cause the script that Cashier sends by default to be overwritten.

The code you add to the custom tracking scripts cannot contain <script> tags, links to external javascript, or liquid code. Please see Limitations in Custom Scripts for more information. 

 


 

Custom Tracking Scripts

If you are looking to track any additional information, you will need to create a custom tracking script for Google Analytics.

To get more information on the limitations of custom scripts, or the variables you can use, please check out Custom Tracking Scripts in Bold Cashier.

Set up your custom tracking script by following this step-by-step:

  1. From Shopify's admin, select Apps.
  2. Select Bold Cashier.
  3. Select Settings, then Analytics.
  4. Select Enable Custom Tracking Scripts for Successful Purchases.
  5. Enter your custom script.
  6. Select Save.
    If you require additional assistance in creating a custom track script, please contact our partners at StoreTasker to receive a quote.


Next Steps:

  • Your google tags should now be tested to ensure that they are tracking information correctly on your storefront. Please visit Place a Test Order with Cashier to learn about how to place a test order.
Was this article helpful?
0 out of 0 found this helpful