SlideRule Analytics

⌘K
Google Analytics 4 Shopify Setup
Automatic Setup
Remove Old Gtag Code
Remove Shopify Built-In GA4 Integration
Configure Google Analytics 4 Data Settings
Additional Details on Orders
Create a Google Analytics Account
Manual Configuration
Uninstall SlideRule Analytics
Why We Use Order ID as Transaction ID in Google Analytics 4
Add a `client_purchase` event
Facebook Conversions API
Installation and Configuration
Verify your Integration (optional)
Remove the Built-in Facebook Pixel Shopify Integration (optional)
How to Test SlideRule's Facebook CAPI Integration Against Your Current Facebook Integration
Data Flow & Customer Data
Customer Data
How Server-Side Data Is Processed
Google Tag Manager
Installation and Configuration
Docs powered by archbee 

Why We Use Order ID as Transaction ID in Google Analytics 4

8min

Overview

SlideRule uses Shopify Order IDs (5214812864687) as Google Analytics 4 Transaction IDs instead of Shopify Order Numbers (#21616).

The main reasons why are:

  1. It's easier to find orders with the order ID.
  2. You can still search for orders with the order id.
  3. The order ID is the unique identifier in Shopify's database.


Locating Orders with Order ID

The Shopify Order ID can be found in the URL of an order page in your Shopify store.

Document image


To locate a specific order using the order ID, simply copy the transaction ID from GA4, and replace the order ID in any order page URL with the copied transaction ID. This will take you directly to the desired order.

Additionally, the search feature in Shopify works with both the order ID and the order number. Searching for an order ID will still bring up the associated order.



Document image


Handling Duplicate Order Numbers

In rare cases, duplicate order numbers can occur in Shopify when importing orders from other sources. However, duplicate order IDs are not possible, as the order ID serves as the unique identifier in Shopify's database.

Generating Links to Orders with Google Analytics 4 Data

Using the order ID, you can export data from GA4 to a Google Sheet and create a simple function to generate links to the orders like so:



Windows
|
=CONCATENATE("https://admin.shopify.com/store/slideruleanalytics-demo/orders/",A9)




This is not possible with order numbers.

Updated 12 May 2023
Did this page help you?
Yes
No
PREVIOUS
Uninstall SlideRule Analytics
NEXT
Add a `client_purchase` event
Docs powered by archbee 
TABLE OF CONTENTS
Overview
Locating Orders with Order ID
Handling Duplicate Order Numbers
Generating Links to Orders with Google Analytics 4 Data