How do I set up Google enhanced conversions by editing code?

Hello Team,

Kindly assist me to setup Google enhanced conversions setup by ‘edit code’. as i selected edit code by drop down (see in screenshot no 1) but i don’t know what code need to be edited and how the process begin. I searched learn more articles but its for developer prospective. kindly help me to setup.

Google Help Webpage Link – https://support.google.com/google-ads/answer/9888145?hl=en

What should be in the place of “yourEmailVariable” and “yourPhonelVariable” from order status page.

1 Like

@GouravKumar

Welcome to Shopify Community.
if you don’t know, it’s difficult to guide you the step by step.
so please hire a developer or agency to help you out.
Thank you.

2 Likes

Hello Zworthkey.
I Understand,

kindly let me know this.
What should be in the place of “yourEmailVariable” and “yourPhonelVariable” from order status page.

Super Thanks

@GouravKumar I’ve written a tutorial showing you how to setup enhanced conversions in Google Ads on Shopify.

There are more fields to cover with the code, but to answer your question:

  {% unless checkout.email == blank %}"email": "{{ checkout.email }}",{% endunless %}
  {% unless billing_address.phone == blank %}"phone_number": "{{ billing_address.phone }}",{% endunless %}

You can go through the tutorial here: https://www.digitaldarts.com.au/google-ads-conversion-tracking-shopify

1 Like

Thanks @Josh_Uebergang
your article is superb and resolve the issue. Thanks again for useful content.

Hey @Josh_Uebergang
Kindly tell me one more important thing:

i My Google Ads Dashboard conversion/Day number is different from Google Analytics? Let say if i have 5 conversion (purchase only) in google account, in Google Analytics > Acquisition > Google Ads>Campaigns Shows different numbers (8-11) in “transaction” column. why it show in increase/decreasing conversion number in Google Analytics.

Completely different tracking methods and attribution models.

Hi Josh,

I read through your very helpful tutorial and noticed your last method for tracking conversions…

Alternative: Google Analytics Import
1. Go through my Google Analytics setup for Shopify to get clean data in Analytics.
The Finest Google Analytics Setup In Shopify For Splendid Data

Option 1 To Install GA4 On Shopify: Google Channel App

This is how I have it set up. GA4 is linked using the ‘Google and YouTube’ app. Its working perfectly. Conversions are being logged correctly and GA4 is linked to my Google Ads account and passing conversions over.

However I am unable to work out how to make enhanced conversions work using this method.
I have enable enhanced conversion in Google Ads but they are not coming through.

Do you have any advice?