Google Ads - Set up enhanced conversions manually with the global site tag (beta)

Solved
Kyle_Wescott
Tourist
6 0 2

Not verified yet so it's probably broken.  I'm going to try the solution below.

0 Likes
Czarto
Shopify Partner
69 2 21

Here is a simpler solution to this, that doesn't require any code changes and uses existing Shopify javascript variables on the checkout page.

NOTE: This assumes you have the Google Shopping App already installed for you Google Ads conversion tracking, but I *think* it should still work even if you don't.

 

  1. Turn on Enhanced Conversions in your Purchase conversion action
  2. Enter your site URL (ideally your order receipt / thank you page)
  3. Choose the Global Site Tag
  4. Select "Enter Javascript or CSS Selectors"
  5. Email: Javascript: Shopify.checkout.email
  6. Phone: Javascript: Shopify.checkout.phone
  7. Name and Address: Javascript:
    • Shopify.checkout.billing_address.first_name
    • Shopify.checkout.billing_address.last_name
    • Shopify.checkout.billing_address.address1
    • Shopify.checkout.billing_address.city
    • Shopify.checkout.billing_address.province_code
    • Shopify.checkout.billing_address.country_code
    • Shopify.checkout.billing_address.zip

 

A full writeup of this and other tweaks to make to Shopify's conversion tracking available here:
https://business.czarto.com/2020/09/29/shopify-google-ads-conversions/

Screen Shot 2021-08-05 at 8.43.09 AM.png

 

 

Digital Marketing @ Manitobah Mukluks
Shopify Digital Marketing Blog: business.czarto.com
DWTK
Tourist
15 0 1

Fantastic! I was having a difficult time figuring out how to pull this off with the Google channel already activated.

I'm curious about the attributes used for the JavaScript setup and why they differ from the other guide which suggested using these:

  • Email
    • enhanced_conversion_data.email
  • Phone
    • enhanced_conversion_data.phone_number
  • First name
    • enhanced_conversion_data.first_name
  • Last name
    • enhanced_conversion_data.last_name
  • Street address
    • enhanced_conversion_data.home_address.street
  • City
    • enhanced_conversion_data.home_address.city
  • State
    • enhanced_conversion_data.home_address.region
  • Country
    • enhanced_conversion_data.home_address.country
  • Postal code
    • enhanced_conversion_data.home_address.postal_code

 

EDIT: Google support was able to verify that I have it correctly set up using the settings I just pasted. So maybe there are multiple ways of doing it?

0 Likes
Amar_Gandhi
Shopify Partner
9 0 1

You can also use this app to get it done if you are like me and don't like coding or are not very technical 

https://apps.shopify.com/magic-google-ads-tracking-1

0 Likes
Czarto
Shopify Partner
69 2 21

I think there are definitely multiple ways of doing this as there are multiple ways to get the customer information. 

Digital Marketing @ Manitobah Mukluks
Shopify Digital Marketing Blog: business.czarto.com
0 Likes
DWTK
Tourist
15 0 1

Ahh, I see.. I'm going to try your setup instead since the other one created this error: 

Customer data validity: Make sure your customer data is formatted correctly.

0 Likes