In this article, you'll learn how to integrate Google Analytics with Loop Subscriptions. Once you've connected, you'll be able to send recurring order transactions generate in Loop to your GA account.
- Server-side integration avoiding the need to add Google tag manager or any tracking scripts separately for the Loop app.
- For every event sent on GA, we add the Shopify customer id as the client id which helps in linking different subscription order events to a common customer.
- We only send transaction data for recurring orders and not the origin order generated from Shopify checkout preventing duplication of the same order.
Loop data synced with GA
Recurring order transactions: Whenever a recurring order billing is attempted, we send out GA Ecommerce events having the products, price, quantity, tax, shipping information related to the order.
- Recurring order paid
- Recurring order failed
Subscription life-cycle events: Along with the transaction events, we also send important subscription events which can help you in analyzing broad patterns for your store subscriptions.
- Subscription created
- Subscription paused
- Subscription resumed
- Subscription expired
- Subscription cancelled
- Subscription reactivated
- Order skipped
Event Payload: For transaction events, we will be sending the standard GA Ecommerce event and for subscription events, we will be sending a basic GA event with label, action and value parameters.
Setting up GA integration
To connect with Google Analytics, please navigate to your GA account and obtain the Tracking ID. It can be found by going to Admin > Account > Property > Tracking Info > Tracking Code. In the image shown below, we've highlighted an example GA Universal Tracking ID in red, typically in the format “UA-XXXXXXXX-X”.
GA4 tracking codes are not supported currently. So, enter only the universal tracking code to receive the Loop subscription events properly.