Shopify8 min read

Shopify add address info tracking in Google Ads

Track Shopify address submissions with Customer events and GTM. Set a separate Google Ads conversion label and test the address event.

The short answer

Track address submissions with checkout_address_info_submitted, then use a filtered GTM trigger for a separate Google Ads conversion. Shopifyshopify.dev makes this event available only in checkouts with Checkout Extensibility enabled. This guide is for store owners and implementers maintaining a custom pixel.

Ask an assistant

ChatGPTClaudePerplexity

FREE AUDIT

NO LOGIN

Check what Meta and Google can count on your site

  1. Your site
  2. Crisper
  3. Meta and Google count it

Enter your website to see how good its tracking is, and whether Meta is likely restricting it.

Run a free audit

How is an address submission different from shipping selection?

Mailing-address submission and shipping-rate selection are separate checkout steps in Shopify's addressshopify.dev and shippingshopify.dev event definitions. Choose which step you want to measure before setting the trigger.

How do I add the custom pixel in Shopify?

Prepare this walkthrough in a development store with a test GTM container. Shopify suggests testing pixels in a dev storehelp.shopify.com before adding them to a live store.

1. Open Customer events and check the loader

  1. In the test store, open Settings > Customer events > Add custom pixel.
  2. Name the pixel.
  3. Review its Customer privacy settings using Shopify's pixel instructionshelp.shopify.com, and use settings that match your consent plan.

Shopify's GTM tutorialhelp.shopify.com uses the container loader as JavaScript without script tags. This address snippet has no loader.

  1. Paste your test container loader above the address snippet, using the ID of a test container that only your development store loads.

Done when the editor is open, the privacy settings are recorded and the pixel contains one loader for the intended test container.

What code tracks Shopify address submissions?

Subscribe to checkout_address_info_submitted and push the mapped values into the data layerdevelopers.google.com, the object GTM reads for events. The Shopify event referenceshopify.dev documents the fields used below.

2. Add the event subscription

event.data.checkout supplies currencyCode, totalPrice.amount and lineItems, as listed in Shopify's payload referenceshopify.dev. The callback is the function that runs when Shopify delivers this event.

  1. Add the snippet below to the pixel's code.
  2. Save and connect the pixel in the test store following Shopify's connection stepshelp.shopify.com.
add_address_info.js96 lines
// Initialize the dataLayerwindow.dataLayer = window.dataLayer || [];// Function to log event to console with enhanced visibilityfunction logEventToConsole(dataLayerEvent) {  const customStyle01 =    "color: #FFFF00; background-color: #000000; font-size: 10px; font-weight: bold; padding: 2px 0;";  console.log("%cDataLayer Event: add_address_info ", customStyle01, {    event: dataLayerEvent.event,    event_id: dataLayerEvent.event_data.id,

87 more lines of JavaScript

  • Copy and download
  • Emailed to you

Unlock this snippet

Three details, and the full code is yours

No account needed. Unlock once and every snippet on the blog opens.

We email you a copy. We may follow up on WhatsApp.

Done when Customer events shows Connected and the saved code contains the checkout_address_info_submitted subscription once.

Shopify's event referenceshopify.dev allows product and variant IDs to be null, and checkout line items can have a null variant. The filter keeps only rows whose product and variant IDs are strings with non-empty trim() results before mapping items. It preserves each retained ID unchanged. The event and its value stay intact even when no valid item remains.

The trigger must combine gtm_custom_event with datalayer_event_name equal to add_address_info. A trigger for the wrapper alone would also match the contact-info snippet.

The address mapping reads shippingAddress.province, the region field in Shopify's referenceshopify.dev. The retained user_data object is not mapped into the basic Google Ads tag below; keep enhanced-conversion work separate.

Use Google Ads Conversion Tracking for this checkout milestone. Google's tag instructionssupport.google.com describe the ID and label fields.

For an observation-only test, use a separate secondary conversion action and keep it out of custom goals. Google says secondary actions appear in All conversions and are not used for bidding, except when included in a custom goalsupport.google.com.

3. Create the variables and event trigger

A Data Layer Variable reads a named value for a tag, and a trigger tells GTM when to run a tag.

  1. Create each Data Layer Variable in the table below, using Version 2, which reads dots as nested fieldssupport.google.com.
  2. Create a Custom Event triggersupport.google.com with event name gtm_custom_event.
  3. Turn regular-expression matching off on that trigger.
  4. Choose Some Custom Events.
  5. Add the condition DLV - Event name equals add_address_info and save the trigger.

DLV - Value

Data layer variable name
ecommerce.value
Purpose
Checkout or item amount

DLV - Currency

Data layer variable name
ecommerce.currency
Purpose
Currency from Shopify

DLV - Event name

Data layer variable name
datalayer_event_name
Purpose
Filter the shared wrapper
These paths match this snippet. Creating a variable does not send it to Google Ads.

Done when the saved variable names and paths match the table, and the trigger's saved event name is gtm_custom_event with a filter that matches add_address_info.

4. Map the tag fields

  1. In Google Ads, open the intended conversion action.
  2. Open Tag setup > Use Google Tag Manager.
  3. Copy its Conversion ID and Conversion Label into the GTM tag; Google distinguishes the account ID from the action-specific labelsupport.google.com.
  4. Set the remaining tag fields and trigger as shown in the table below.
  5. Check the associated Google tag is present in the test container; Google's remarketing instructions require it for optimal browser compatibilitysupport.google.com. The Google tag IDsupport.google.com is distinct from your GTM- container ID.
  6. Save the event tag.

Conversion ID

Setting for this walkthrough
Your test action's account Conversion ID

Conversion Label

Setting for this walkthrough
The label for your add_address_info action

Conversion Value

Setting for this walkthrough
0 for this observation-only example

Currency Code

Setting for this walkthrough
{{DLV - Currency}}

Transaction ID

Setting for this walkthrough
Leave empty; this is not an order

Trigger

Setting for this walkthrough
gtm_custom_event filtered to add_address_info
Use your own action values. The zero-value milestone example is not a Google recommendation.

Done when the saved event tag's fields, destination and trigger match your test plan.

The snippet retains the checkout total in ecommerce.value for inspection, but this example sends an explicit zero conversion value. GTM sends zero when Conversion Value is empty or undefinedsupport.google.com; setting it explicitly makes this example's choice visible.

How do I test address submissions on Shopify?

Use Customer events > Test to inspect the event with Shopify Pixel Helperhelp.shopify.com, then inspect the Google request separately. Start with the test store and test container prepared above.

5. Publish the version in the test container

Changes saved in a workspace do not run yet. Google sayssupport.google.com you need to publish workspace changes to make them operational.

  1. Open the test container that only your development store loads.
  2. Select Submit, then choose Publish and Create Version.
  3. Name the version and publish.

Do not publish to a container your live store loads; move the tested setup there through your normal release process.

Done when the test container's Versions list shows your version as published and the pixel code loads that container's ID.

6. Follow one test action through the setup

  1. Open the connected custom pixel and choose Test using Shopify's testing stepshelp.shopify.com.
  2. Exercise the consent choice for your test and check that Pixel Helper's consent status matches that choice.
  3. Submit the mailing-address section in a test checkout.
  4. In Pixel Helper, check that checkout_address_info_submitted is listed, and inspect the address event and the current checkout currency and total.
  5. Inspect the pixel's console entry and data-layer push for add_address_info: the event name and datalayer_event_name filter should match your saved GTM trigger, and the expected fields should contain the test values.
  6. In browser developer tools, inspect the outgoing Google Ads conversion request: it should use the milestone action's ID and label, the explicit zero value and the expected currency, rather than the Purchase label.
  7. Record the test time, event ID, container version and observed request fields.
  8. Run the subscription locally with null, empty, whitespace-only and non-string values for each ID field.
  9. Include a null-variant checkout line, a mixed list with a valid line, and an all-invalid list.
  10. Repeat with amounts of 0 and a nonzero amount, passing retained items through any downstream formatter.

Done when every check above matches, the notes identify what passed and any missing or repeated request that still needs investigation, and in the local runs the event, currency and value stay intact, genuine IDs remain unchanged, and no mapped ID is blank or replaced by a product name.

When is this the wrong setup, and what can go wrong?

Use this guide when you need to maintain this custom event mapping. Shopify advises reviewing available apps before creating a custom pixelhelp.shopify.com; if an app already handles the job, inspect that integration first.

  • Treating every gtm_custom_event as an address submission: the contact snippet uses that wrapper too. Add the add_address_info filter.
  • Adding a second sender without checking the first: Shopify warns overlapping pixel installations can count events twicehelp.shopify.com. Inventory the existing event sender before adding this one.
  • Saving a tag without checking the actual request: a filled-out tag is only a configuration. Match the request fields to your recorded test action.

If you also need storefront coverage, the Shopify Google Ads page-view guide walks through the separate page-view trigger.

What changed in this guide

  • 25 October 2026: Added the Shopify event explanation, Google Ads tag mappings and test checks; preserved existing event names and corrected payload handling. Corrected the address region lookup. Added the isolated test-container publication procedure and published-version check. Filtered items missing either product or variant IDs and added null-item checks without changing event values. Replaced the repeated introduction with the next event-specific check. Rejected whitespace-only and non-string item IDs while preserving genuine IDs, and added formatter checks for mixed and invalid items.

Sources

14 sources
  1. 1checkout_address_info_submitted↩
  2. 2Conversion tags need an ID and label↩
  3. 3shipping↩
  4. 4Shopify suggests testing pixels in a dev store↩
  5. 5Shopify's pixel instructions↩
  6. 6Shopify runs custom pixels in a sandbox↩
  7. 7Shopify's GTM tutorial↩
  8. 8data layer↩
  9. 9Google says secondary actions appear in All conversions and are not used for bidding, except when included in a custom goal↩
  10. 10Version 2, which reads dots as nested fields↩
  11. 11Custom Event trigger↩
  12. 12Google's remarketing instructions require it for optimal browser compatibility↩
  13. 13Google tag ID↩
  14. 14Google says↩