How to exclude Shipping and Taxes from Conversion Value in Google Ads?

Billll
Tourist
6 0 1

Hi,

Does anyone know how I can exclude Shipping and Taxes from being reported within the Conversion Value of Google Ads? Similarly, perhaps more importantly, I would also like to exclude Shipping and Taxes from being reported within the Revenue of Universal Analytics.

Is anyone able to advise how to do so on Shopify? I've been made aware it's something to do with the code on the checkout page, any ideas how I stop the checkout page sending that information the UA or GA?

Thanks!
Bill

Replies 2 (2)

flareAI
Shopify Partner
2405 223 535

Hello @Billll,


I am Gina from flareAI app helping Shopify merchants get $6Million+ in sales from Google Search, on autopilot. Hope you are having a good day.


To exclude shipping and taxes from being reported in Google Ads conversion value, you can set up a conversion action that only counts the value of the products being sold. You can do this by setting up the conversion action to only fire when a specific event occurs, such as when the purchase is completed, but excluding shipping and taxes from the value.


Below is the steps to set it up in your Google Ads account.


1. Go to the "Tools & Settings" menu and select "Conversions".
2. Select the conversion action you want to edit, or create a new one.
3. Under "Conversion Value", select "Use different value for each conversion".
4. Select "Don't use a value for this conversion action".
5. Under "Count", select "Every" or "One".
6. Save the changes.


To exclude shipping and taxes from being reported in Universal Analytics, you can modify the tracking code on your Shopify checkout page to exclude the shipping and taxes values.


Here's how to do it.


1. Go to the "Online Store" section of your Shopify dashboard.

2. Select "Themes" and then "Actions" and "Edit code" for your current theme.

3. Locate the "checkout.liquid" file and click to open it.

4. Search for the following code:
ga('ecommerce:addTransaction', {
'id': '{{ transaction_id }}',
'affiliation': '{{ shop.name }}',
'revenue': '{{ total_price | money_without_currency }}',
'tax': '{{ total_tax | money_without_currency }}',
'shipping': '{{ total_shipping | money_without_currency }}'
});
5. Replace it with the following code.
ga('ecommerce:addTransaction', {
'id': '{{ transaction_id }}',
'affiliation': '{{ shop.name }}',
'revenue': '{{ subtotal_price | money_without_currency }}'
});

6. Save the changes.


This modification removes the "tax" and "shipping" values from the Google Analytics tracking code on your Shopify checkout page, and only sends the revenue value of the products being sold.


Gina

flareAI : Get Sales from Google Search, on Autopilot
$10+ billion in eCommerce on Google Search, every day. Find out how much you are missing

Tib_Bar_Bros
Tourist
4 0 2

Hey Bill, it's not too hard. Here's how - it's directly from the Shopify help page (link)

 

To exclude taxes and shipping from the conversion amount, replace it with this snippet: 'value': {{ checkout.subtotal_price | divided_by: 100.0 }},
To include taxes and shipping in the conversion amount, replace it with this snippet: 'value': {{ checkout.total_price | divided_by: 100.0 }},