Skip to main content
All CollectionsConversion feed
Google Analytics 4 Integration
Google Analytics 4 Integration
Alex avatar
Written by Alex
Updated over 3 weeks ago

The problem with pixel-based GA4

The pure pixel-based GA4 has below issues.

  1. Easily be blocked by some privacy-focused browsers.

  2. Lack of some critical events tracking, such as checkout start, payment info, contact info, address info, ship info, checkout complete.

  3. Refunds can't be tracked.

The Attribuly GA4 integration highlights

With the integration,

  1. 98%+ accuracy.

  2. Track the whole checkout process.

  3. Get a better customer lifetime view with the refund event.

How the integration works

To track the critical checkout process and have accurate data in GA4, the Shopify Web Pixels is the best solution. Since it provides checkout events below for all Shopify plans.

  • Checkout start

  • Payment info submission

  • Checkout complete

For Shopify Plus merchants, it even provides more customer events with support of Checkout Extensibility.

  • Contact info submission

  • Address info submission

  • Ship info submission

With these critical events available in GA4, it's meaningful to have a funnel view of the whole checkout process.

Attribuly works as "Your Server" in below diagram, and send the data to GA4 via cloud.

It contains some of the most popular customer events, without a line of code.

  • page view

  • view item

  • view item list

  • search

  • add to cart

  • begin checkout

  • add payment info

  • purchase

  • view cart

  • refund

  • remove from cart

Integrate your refund data with Shopify

The refund events can also be sent to GA4, this information is from Shopify backend. So it's more accurate when you run LTV report.

Integrate with your existing GA4 property

If you have existing GA4 property with data from Gtag. You may question how duplication works when browser-side and server-side send the same event.

Attribuly uses the Gtag-generated Client-id as the same parameter when sending data back to GA4. So GA4 uses this parameter to map the same event from browser-side and duplicate.

Input your existing GA4's token and measurement ID to run this mode

Set up guide

Step 1: Select the events you want to send via cloud

Step 2:

Configure the measurement ID and API secret.

Follow the interaction demo to get the code.

Step 3: Install custom pixel.

Go to “Customer events” in Shopify Settings

Add custom pixel

Copy the snippets Attribuly generates and paste here, then click"Save", and click"Connect".

If you install the "Google & Youtube Channel" app

Option 1: Remove the Google Analytics from "Google channel"

Then choose all the events from Attribuly to send.

Compared to Google Channel, Attribuly can support more events.

Events in GA4

Google & Youtube Channel

Attribuly

Page_view

Y

Y

view_item

Y

Y

view_item_list

N

Y

search

Y

Y

add_to_cart

Y

Y

begin_checkout

Y

Y

add_payment_info

Y

Y

purchase

Y

Y

view_cart

N

Y

refund

N

Y

remove_from_cart

N

Y

add_address_info

N

Y

Option 2: Create a new GA4 property.

Using Attribuly to connect new properties, you don't have to deal with previous data collection.

FAQ

Why can't I see Purchase Conversion in GA4?

In some cases, you need to change the Reporting identity to "Device-based".

Did this answer your question?