← All portfolio work
Need2CartShopifyGoogle Ads + GA4Browser + Server

Google Ads Conversion Tracking & GA4 E-Commerce Tracking for Shopify

Google Ads Conversion Tracking & GA4 E-Commerce Tracking

Shopify tracking with a custom data layer, GTM web/server containers and captured purchase validation.

Open original case study PDF ↗
01

The business and the challenge

Need2Cart runs its e-commerce store on Shopify. The project covered Google Ads and GA4 tracking for the journey from product browsing to cart, checkout and purchase.

02

My strategy

I used a custom data layer with GTM web and server containers. Purchase was the primary Google Ads action; Add to cart and Begin checkout were secondary. I validated the flow with GTM Preview and GA4 Realtime.

03

Connect Shopify and the data layer

I connected GTM to the store and added a custom pixel in Shopify Customer Events. The storefront test shows Tag Assistant connected and custom_page_view data visible.

Shopify storefront connected to GTM with a custom data layer event.
01Shopify storefront connected to GTM with a custom data layer event.
Shopify Customer Events pixel with GTM and custom data layer code.
02Shopify Customer Events pixel with GTM and custom data layer code.
04

Configure conversion actions and web tags

I created Google Ads conversion actions and web tags, including user-provided data. GA4 tags covered page views, product and item-list views, cart, checkout and purchase through custom event triggers.

Purchase set as primary; cart and checkout actions set as secondary.
03Purchase set as primary; cart and checkout actions set as secondary.
Google Ads and GA4 web tags linked to Shopify custom events.
04Google Ads and GA4 web tags linked to Shopify custom events.
05

Add server-side tracking

I created the Stape server and configured GA4, Google Ads conversion and user-provided data tags in the GTM server container. The captured Stape dashboard shows the server running.

Need2Cart server shown as running in Stape.
05Need2Cart server shown as running in Stape.
GA4 and Google Ads tags configured in the server container.
06GA4 and Google Ads tags configured in the server container.
06

Configure GA4 data collection

The settings capture shows Google signals and granular location/device collection enabled, with the displayed data collection acknowledgements completed.

GA4 data collection settings and acknowledgements captured.
07GA4 data collection settings and acknowledgements captured.
07

Test the shopping journey

Web Preview shows shopping and conversion tags firing. For the selected server purchase, GA4, Google Ads Purchase and user-provided data tags show Succeeded. GA4 Realtime received purchase activity, and the Google Ads Purchase goal shows Active.

GA4 and Google Ads tags fired during the captured web test.
08GA4 and Google Ads tags fired during the captured web test.
GA4, Google Ads Purchase and user-provided data tags succeeded.
09GA4, Google Ads Purchase and user-provided data tags succeeded.
Purchase activity received in GA4 Realtime.
10Purchase activity received in GA4 Realtime.
Google Ads Purchase goal shown as Active.
11Google Ads Purchase goal shown as Active.
08

Results

The delivered setup connects Shopify shopping events to Google Ads and GA4 through browser and server containers. Captured tests demonstrate tag execution, GA4 purchase receipt and an Active Purchase goal; they do not establish a sales or ROAS uplift.

09

A free tracking audit

Share your website and tracking requirements for a free review of your tags and potential issues.

Claim your free tracking audit