Add Google Ads conversion tracking to Shopify quickly. Choose from three versions:
- Additional Scripts: Deprecated but still installable.
- Shopify Pixel: Direct installation with Google Ads, excluding enhanced conversions.
- Shopify Pixel with Enhanced Conversion & Micro Conversions + GA4: Available when installing via Google Tag Manager.
The Shopify Pixel Code is compatible with Shopify checkout extensibility.
Please note that users checking the code with Tag Assistant or developer tools will not be able to see the code, as Shopify pixels run in sandbox mode, which is not viewable.
Please also note that if you are installing this with Google Analtyics 4, that you will not be able to view the debug mode in GA4. But you can view the realtime data to verify it’s tracking.
Enhanced conversions will be reflected in the status details within a week, depending on your sales volume.
💡 Optional but recommended: For those who want to simplify server-side tagging and make the most of your setup, I personally recommend using Stape.
It offers a managed server-side GTM container that integrates well with Shopify and helps streamline tracking implementation.
This is a referral link — if you sign up through it, I may earn a small commission at no extra cost to you. It helps support the free guides and tools I provide.
👉 Try Stape
Shopify Pixel + Enhanced Tracking + Micro Conversions + GA4
What is New?
- V1.05+ now supports cart data, for using cost of goods based bidding strategy in Google Ads
- V1.07+ now supports micro conversions + bug fixes
- V1.08+ now supports Google Analtyics 4 (optional)
- V2+ now supports remarketing & remove from cart
What is the difference between Micro and Macro Conversions?
When it comes to advertising, we have two types of conversions. Macro and Micro conversions. Macro conversions are the website’s primary conversions, such as completing an order or submitting a lead form. Micro conversions are smaller actions such as add to cart, view cart, add a delivery address, etc.
Requirements
You need access to the following accounts.
- Google Tag Manager
- Google Ads
- Google Analytics 4
- Shopify (Customer Events)
Let’s get started!
If you have not yet created a Google Tag Manager account, create one now.
Once the account is created, you should see a popup with your GTM tag, if you don’t see this, don’t worry, simply go to Admin > Install Google Tag Manager

Copy the tag id without GTM- as highlighted in the image below

Replace the following values in the settings:
- GOOGLE_TAG_MANAGER_ID
- Add your GTM tag ID
- GOOGLE_MERCHANT_CENTER_ID
- Add your Google Merchant Center account ID
- PRODUCT_COUNTRY_CODE
- Set your default country ISO2 code, for usage in product IDs
- ESTIMATED_SHIPPING_TIME
- Add your estimated shipping time
- GRANT_CONSENT
- Defaulted to false, if you set it to true, you are forcing to set consent_mode v2 to true, regardless what the use selected (not recommended)
- ID_TYPE
- Set your Google Merchant Center product ID format
- CAPITALIZE_SKU
- If you are not using the default Shopify IDs and you are using SKUs, you can choose to uppercase the value
In the code replace GTM-123456 with your GTM tag ID
You can get the code by registering here: https://feedarmy.io/product/enhanced-tracking-pixel-for-shopify/
Go to Shopify > Settings > Customer Events

Click on add custom pixel

Paste your code, click on save and then connect.
In Google Tag Manager, go to admin > and click on import container.

GTM JSON File
In Google Tag Manager select the json file (you can find it in the downloaded file).
Chosing your workspace, click on existing and choose default workspace
Select Merge as the import option

Click on confirm

Go to Workspace > Tags > Click on Google Ads Shopify Pixel Conersion Tracking By FeedArmy

Hover over the tag and click on edit

Add your Google Ads conversion ID and Label when creating a new conversion.

In Google Ads go to Goals > Summary > Click on New Conversion Action

Select website
Enter any website domain, and click on scan
Scroll to the bottom of the page and click on Add a conversion action manually

Add your conversion action details:
For Goal and action optimization select purchase
For Conersion name, add any name, I recommend Shopify GTM Pixel
For the Value select Use different values for each conversion
Click on Done, then click on save and continue

Select Google Tag Manager and copy your id and label from Google Ads and paste it in Google Tag Manager

Now repeat the steps for the micro tracking (optional) (view the instructions video for more details) and ensure everything is set to secondary as goal, unless you know what you are doing:
- Add To Cart
- Remove From Cart
- Cart Viewed
- Begin Checkout
- Add Shipping Info
- Payment Submitted
- Search
- View Collection
Save the tag, and now lets publish the GTM container by clicking on Submit

Add a version name and click on publish

Let’s enable enhanced conversions in Google ads by clicking on done, then select your conversion action and click on ehanced conversions.
Check the box next to Turn on enhanced coversions
Check the radio button for Google tag or Googel Tag Manager and select next
Enter just a letter d, and click on check URL, as we want to force an error.
We can now click on select one manually

Click on Google Tag Manager > Next and click on save

Google Ads Remarketing
To enable the Google Ads Remarketing setup, we only need to copy the Google Ads conversion ID. You can find this by going to Goals > Select any website conversion action, such as the ones you just created, and copy the id.

And paste the conversion ID in the remarketing tag inside Google Tag Manager.

Google Analytics 4 Setup
Continue GA4 Installation: We now need to add our Measurement ID
- Tags:
- Google Analytics 4 Data
- Google Analytics 4 Page View

You can find your Google Analytics Measurement ID by going to:
- Google Analytics
- Cog Icon (admin)
- Under Data collection and modification, choose Data Streams
- Click on your data stream
- Now you can view and copy your measurement id

Now click on both tags, and add replace the G-1234 that I added, with your own measurement ID.

Support My Work!
https://www.trustpilot.com/review/feedarmy.com
or here : https://g.page/r/CbGZ-JICOoh1EAg/review
Trouble Shooting
Can Not See Data Layers
Because Shopify pixels run in sandbox mode, for privacy reasons, you cannot view data layers in your browser using conventional tools.
You will need to use a Chrome extension such as https://chromewebstore.google.com/detail/datalayer-checker-plus/blglfmihmnbhfgfbomofeljmididgfhe
Even then, it is only sometimes 100% working.
Zero Tracking
If nothing is working, even adding to the cart, that signals more serious issues. This means there is possibly a third-party app blocking pixels from working.
It’s also possible that your cookie consent is not enabling tracking, you can test by forcing the consent to be set as accurate in the code settings.
Some Conversions Are Tracking
If you notice that not all conversions are tracked in Google Ads, this signals that the payment method you are using is not sending back the correct data to Shopify. This is a known issue with third-party payment methods, even with the old additional script method.
Conversion Not Working
If your conversions are not working, then most likely your theme checkout and thank you page are not published.
Go to Shopify > Online Store > Themes > Click on Customize

Click on the home page drop down and select Checkout and new customer accounts
Click on checkout drop down and choose thank you and or checkout (whichever says unpublished)
Click on the sections button and publish.

You can also check if your checkout domain matches your domain. In some cases the domain name is myshopify.com instead of your domain.
Google Analytics Average Engagement Time Per Session
When using Shopify Pixels / Customer Events, and due to Shopify using sandbox environment, automatic events, including engagement event for Google Analytics aren’t triggered.

Change Log
- 18 January 2025: V2.0026 Updated remarketing tags (they where not complete before)
- 29 October 2024: V2 Includes remarketing, remove from cart micro conversion.
- 6th October 2024: V1.0816 Fixed purchase report issue in GA4 (just update the pixel code in Shopify)
- 2nd September 2024: v1.0814 Fixed the pixel code to correctly show the item_id instead of the id (For GA4).
- 2nd September 2024: V1.0813 Fixed an issue with event naming convention
- 25th August 2024: V1.08+ now supports Google Analytics 4
- 8th August 2024: V1.07+ now supports micro conversions + bug fixes
- 16th July 2024: Updated GTM enhanced conversion data to be lowercase, as per documentation and highlighted by Lowie Verschelden
- 14th July 2024: Added V1.05 cart data, so that you can use Google Ads cost of goods based bidding.
- 18th June 2024: Added conditional checks for enhanced data to avoid listing empty values
- 10th June 2024 : Updated GTM Container, incorrect mapping of some variables (to update please delete all variables in GTM, and re-import with merge option)
Shopify Pixel
This Shopify Pixel / Customer Event code, has been tested and verified as working for Shopify merchants that have enabled Checkout Extensibility.
The first step is to get your conversion id and label.
Log in to Google Ads and go to Goals > Conversions > Summery

Click on the blue button that says + New conversion action

Select Website as your conversion method.

Enter your website address, and scan.

If you see a banner that says to use Google Analytics, then click on Use Google Ads only

Click on +Add conversion action manually.

- Choose Purchase as your Goal and action optimization
- Enter any conversion name, I will call it Shopify Pixel
- Select Use different values for each conversion
- Leave the rest unchanged and click on done

Click on See event snippet

Copy the code and paste in a temporary text file, we will copy some details at a later stage.

Click on Done.
Now go to Shopify > Settings > Customer Events
And click on Add custom pixel

You can give it any pixel name, but I will call it Google Ads Conversion. Now click on Add pixel.

When editing the code below, please do not remove or change the author, and respect who built it.
// Created by FeedArmy V1.04
Paste the below code in the Shopify pixel.
// Created by FeedArmy V1.05
const script = document.createElement('script');
script.setAttribute('src', 'https://www.googletagmanager.com/gtag/js?id=AW-123456789');
script.setAttribute('async', '');
document.head.appendChild(script);
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-123456789', {'allow_enhanced_conversions':true});
analytics.subscribe("checkout_completed", (event) => {
gtag('set', 'user_data', {
email: event.data?.checkout?.email,
phone: event.data?.checkout?.phone,
address: {
first_name: event.data?.checkout?.shippingAddress?.firstName,
last_name: event.data?.checkout?.shippingAddress?.lastName,
street: event.data?.checkout?.shippingAddress?.address1,
city: event.data?.checkout?.shippingAddress?.city,
region: event.data?.checkout?.shippingAddress?.province,
postal_code: event.data?.checkout?.shippingAddress?.zip,
provinceCode: event.data?.checkout?.shippingAddress?.provinceCode,
country: event.data?.checkout?.shippingAddress?.country,
countryCode: event.data?.checkout?.shippingAddress?.countryCode,
}
});
gtag('event', 'conversion', {
send_to: 'AW-123456789/abcdefg123456789',
transaction_id: event.data?.checkout?.order?.id,
value: event.data?.checkout?.subtotalPrice?.amount,
currency: event.data?.checkout?.subtotalPrice?.currencyCode,
});
});

From your previously copied code from Google Ads, copy the AW-123456789 id highlighted in the image below.

And paste it twice on row 3, and row 10, by replacing the existing ID AW-123456789 (shown in red in the image above)
Go back to your Google Ads code and now copy the full ID and Label as highlighted in the image below.

Replace the send_to value between the quotes on row 14. (shown in red in the above image)
Now click on save in the top right corner followed by clicking on Connect, accept Shopify terms and conditions. And you are all done.
Testing
You can’t test code on Shopify’s checkout thank you page because it’s in sandbox mode, meaning tools like Google Tag Assistant or GTM Preview Mode won’t work. If you want to check data layers, you need to use a chrome extension such as https://chromewebstore.google.com/detail/datalayer-checker-plus/blglfmihmnbhfgfbomofeljmididgfhe
Change Log
- V1.05 – 20 May 2024: Changed the order of gtags
- V1.04 – 20 May 2024: Added user_data values after Sve (comment below) confirmed Google’s own version. I already built this months ago, but needed confirmation it’s correct.
- V1.03 – 02 March 2024 : Supports multicurrency and used subtotal price instead of total
- V1.02 – 27 February 2024 : Public Release
Support My Work!
My conversion tracking code is constantly updated and provided free for anyone to use. As I don’t ask for any monitary value in return, I would be grateful if you consider leaving a review: https://www.trustpilot.com/review/feedarmy.com
Additional Scripts
Supported Functions
- Automatically supports multi currencies.
- Automatically converts European prices with commas to dots.
- Optional choice for disabling tax and shipping in your checkout value.
- Includes the new Google Ads enhanced conversion option
Requirements
- Access to Google Ads > Conversions
- Access to Shopify > Settings
Step 1: Open Shopify Checkout Settings
Open a new tab in your browser and log in to your Shopify Admin Panel
Navigate to Settings (Gear Icon) and choose Checkout

Step 2: Setup & Copy Your Google Ads Conversion Code
In a second browser tab, login to Google Ads and click on the tools and settings menu in the top right corner and select Conversions under the Measurement column.

Click on the big blue plus sign (New Conversion Action).

Now select website as your tracking template.

It will now ask you to scan your website URL. Enter your URL and click on scan.

Scroll to the bottom and choose to install the conversion action manually.

Then do the following :
- Conversion name
- enter any name
- Category
- Purchase / Sale
- Value
- Use different values for each conversion
- Attribution model
- Choose Position-Based (recommended for growth based businesses)
- The rest can be as default
I have written a great article on how to choose your attribution model.
Click on Create and continue

Now you can click on Save And Continue

Click on See Event Tag

Copy your Event Snippet and save it in a temporary file, for later use.

Click on Done

Click on the recently added conversion action

Enabling Enhanced Conversions is optional and not required. Some accounts may not see this option yet. So you can continue the steps below, excluding those related to enhanced conversions. (Skip to Step 3)
Now go to Tools and Settings > conversions > settings or click here: https://ads.google.com/aw/conversions/customersettings
By enabling enhanced conversions you allow Google to improve its accuracy to track conversions. This seems to be required due to Apple’s IOS14 no tracking prompt.
After you have checked the box and clicked on save, you will get a terms and conditions prompt, read it and confirm.

Now choose Google Tag and click on Tag Details.

Now check the box next to Specify CSS selectors or JavaScript variables
- Change CSS selector to Global Javascript variable
- Enter the following values for Email
- enhanced_conversion_data.email
Repeat the steps for Phone number and Name and Address
- 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

You might ask, why the javascript values? Well on your thank you page, the javascript selector for all the values is added as a javascript variable when using the conversion tracking code below (From V1.5). This will only work if you use the code below.
Step 3: Editing and Pasting Your Google Ads Conversion Tracking
Go back to Shopify and scroll down until you see Order Processing (from step 1), at the bottom of this section you will have a field where you can paste code that is labeled Additional Scripts.
If you have two fields such as post purchase and order status, then add the code to the order status field.

Copy the send_to value (image below) and replace fa_send_to value with your value in the code template below.

- replace the value for fa_send_to
- replace the value AW-123456789/abcdefghijlklmnopq with your event snippet send_to value
- Choose yes or no for fa_include_tax_and_shipping
- choose yes if you want to include tax and shipping in the checkout value or no to not include tax and shipping values.
Sometimes on rare occasions, when you set fa_include_tax_and_shipping to no, it would still include the shipping. I’m not sure why this sometimes happens, but it might have to do with the account country. So if you notice shipping is included, set the value to yes, and it will remove shipping.
Code Template (change the fa_send_to value with your code snippet send_to value)
<!-- FEEDARMY START Global site tag (gtag.js) - Google Ads V2.2 -->
<!-- For the latest and updated code or tutorial: https://feedarmy.com/kb/adding-adwords-conversion-tracking-to-shopify/ -->
{% assign fa_send_to = 'AW-123456789/abcdefghijlklmnopq' %}
{% comment %}DO NOT EDIT BELOW{% endcomment %}
{% if fa_google_coding %}{% assign fa_google_coding = true %}{%- else -%}{% assign fa_google_coding = false %}{%- endif -%}
{% assign fa_google_ids = fa_send_to | split: "/" %}
{% if fa_google_coding == false %}
<script async src="https://www.googletagmanager.com/gtag/js?id={{fa_google_ids[0]}}"></script>
{%- endif -%}
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{fa_google_ids[0]}}', {'allow_enhanced_conversions':true});
var checkout = window.Shopify.checkout;
</script>
{% if first_time_accessed %}
<script>
gtag('event', 'conversion', {
'send_to': '{{ fa_send_to }}',
'value': checkout.total_price_set.presentment_money.amount,
'currency': checkout.total_price_set.presentment_money.currency_code,
'transaction_id': '{{ order_id }}',
});
var enhanced_conversion_data = {
{% unless billing_address.first_name == blank %}"first_name": "{{ billing_address.first_name }}",{% endunless %}
{% unless billing_address.last_name == blank %}"last_name": "{{ billing_address.last_name }}",{% endunless %}
{% unless checkout.email == blank %}"email": "{{ checkout.email }}",{% endunless %}
{% unless billing_address.phone == blank %}"phone_number": "{{ billing_address.phone }}",{% endunless %}
"home_address": {
{% unless billing_address.street == blank %}"street": "{{ billing_address.street }}",{% endunless %}
{% unless billing_address.city == blank %}"city": "{{ billing_address.city }}",{% endunless %}
{% unless billing_address.province_code == blank %}"region": "{{ billing_address.province_code }}",{% endunless %}
{% unless billing_address.zip == blank %}"postal_code": "{{ billing_address.zip }}",{% endunless %}
{% unless billing_address.country_code == blank %}"country": "{{ billing_address.country_code }}"{% endunless %}
}
};
</script>
{% endif %}
<!-- FEEDARMY END Global site tag (gtag.js) - Google Ads V2.2 -->
Verifying and Testing
Verifying
You can verify if the code is working if you go to Google Ads > Tools and Settings > Conversions > here check if the status is verified.
Testing
First open up Tag Assistant when the new window opens up make a test payment to check if the conversion tracking is correctly installed. When you are on the final thank you page check the data within Tag Assistant.
Tip:
first_time_accessed
is for the page, not for the customer. Subsequent orders will run afirst_time_access
again for the same person if it is a new browser session.
Trouble Shooting Enhanced Conversions
Make sure you have waited at least 3 to 7 days. Google requires time to compile the data.
Coverage:
You may encounter issues with regard to coverage. This can happen when customers pay through a third-party payment processor (PayPal), which may require that they enter customer data on a different domain instead of directly on your website like they do when they do not use a third-party payment processor.

Match status:
If you are having issues with the match status, not all users fill out all the fields in your checkout. What you could do is remove the attributes in your Google Ads conversion list to only track emails or only track mandatory fields in your checkout.
By removing non-mandatory fields, you will avoid submitting empty fields to Google.

Change Log
- 8th September 2023 – updated the steps for enhanced conversion tracking
- V2.2 – 11 July 2023 – updated code to validate every value
- V2.1 – 24 June 2023 – updated checkout price to use presentment_money
- V1.8 – 10 August 2022 – Added enhanced conversion checks for email and phone number
- V1.7 – 07 June 2022 – Fixed incorrect total value when changing shipping and tax settings
- V1.6 – 28 April 2022 – Fixed the country code not adding the value correctly as highlighted by Jon Yildiz
- V1.5 – 27 July 2021 – Added Enhanced Conversions using Javascript and removed CSS
- V1.4 – 21 July 2021 – Added Enhanced Conversions using CSS
- Due to server migration, older changes are not listed
Support My Work!
My conversion tracking code is constantly updated and provided free for anyone to use. As I don’t ask for anything in return, I would be grateful if you consider leaving a review: https://www.trustpilot.com/review/feedarmy.com
Hi Emmanuel. Thank you very much for the content!
I went through the entire process, but when I go to Audience manager>Your data sources, it shows that the Google Ads Tag has not yet been added to my website and gives me the option to start configuring the Tag.
Can you tell me why?
It takes 2 days for the remarketing data to show up. It is possible you need to configure the settings the first time. The tutorial is written from the perspective assuming you had a previous setup already.
Hello, I have installed the pixel on my website as per your instructions, and it works perfectly on the desktop. However, it fails on mobile. During my test checkout, I noticed that my domain changed to shop.app, which is Shopify’s domain, and subsequently, all tracking became invalid.
You might want to look into GTM conversion linker for cross domain
Hi!
We’ve installed your pixel successfully some weeks ago. Now we do encounter issues a) in the tag manager, saying GTM tag can not be found on checkout pages (others yes) and b) in Google Ads, saying enhanced conversions are set up but no attributes for enhanced conversions come with the tag. So, I’m wondering, could this be related to the V2 consent mode? Or do you have any idea what we might need to change in the setup?
Detecting enhanced conversions, usually takes a few weeks for Google. I don’t know if cookie consent slows down the data collection. But the more conversions you have, the faster it usually is.
Ok, thank you. But we actually didn’t have the issue after switching from the standard Shopify Google channel to your script. So I was wondering what initiated the change… Other than that – Can you imagine why the tag can’t be detected on the checkout page? All other tags (Adwords, Analytics) are present there…
If you have already looked at the troubleshoot guide on this article, then I do not know what your issues could be. Shopify doesn’t really assist with this kind of issue, and I have tried to find out why for a year now, with no results. So unfortunately I don’t know. Other then, it’s some kind of 3rd party app blocking it (my guess). The code works on a clean install with no 3rd party apps.
Hi Emmanuel,
First of all, thank you for the solution – I’ve implemented your script using Shopify’s Custom Pixels, and I can confirm that ecommerce events are working properly in the GA4 real-time report.
However, I also need to track additional events on my website, such as form submissions and email signups, and I want to set those up using GTM
Here’s where I’m running into some issues:
Can you advise what would be the best way to proceed in this case?
Should I add the standard GTM snippet manually in the
theme.liquid
file to enable Debug Mode and still keep your eCommerce tracking? Or is there a way to adapt your solution so I can work with other events via GTM?Please use the chrome extension, I mention in the article.
Hi, does it work with the dynamic buybuttons in shopify?
I don’t know what that means. All data is pulled from Shopify predefined data (with modifications) and triggers. I recommend testing out the code.
Hi Manuel,
I hope you’re doing well! I noticed a message in GTM that says:
Could you please help me understand why this is showing up?
Is there a Google tag missing or something that still needs to be configured?
I have implemented – 18 January 2025: V2.0026 Updated remarketing tags (they where not complete before)
Hello Milen, I recommend having a look at the help document below, to see if you can resolve the issue: https://support.google.com/tagmanager/answer/14681508
Hi!, does this new set of tags includes the parameters needed for Google Ads to count the COGs? Thanks!
https://support.google.com/sa360/answer/9455407?hl=en#:~:text=In%20Google%20Tag%20Manager%2C%20navigate,sales%20data%E2%80%8B%20check%20box.
Yes it does. cost of goods data is included.
thank you! and would it be possible to give Purchase the value of the order deducting shipping and taxes? in my case would be (order total – shipping) / 1.21
Yes that is possible, if you need any customization, please email me at [email protected]
How will we import updates to the json file in the future? Overwrite or merge?
That depends on what will change. So I will not be able to predict what will happen in the future, but I will do my best to explain a step by step guide for when that happens.
There are 2 files in the json file we received, how do we use the update one?
Use merge in this case.
Hi Emmanuel Flossie,
I am using your gtm setup to google ads tracking. I want to send a shipping cost with order value on purchase event in google ads. Can we do it?
If yes what changes I have to do it? Can you share some steps
Thanks In advance
Sure that can be done, please contact me at [email protected] for personal assistance.
Hello Emmanuel!
And thanks for all you are doing!
qq – do I need to set up GTM container code in theme.liquid or just your script in the custom pixel section?
Thank you!
No, just install the script in the customer events.
Hi there,
I installed the custom pixel Google Ads conversion tag here: https://share.cleanshot.com/3zQZHqQv.
A few days ago, I realized that enhanced conversions weren’t working, so I installed and imported the GTM purchase conversion action here: https://share.cleanshot.com/fz0902zK.
Just to confirm, this won’t duplicate the purchase conversion action, right?
Also, I installed GTM a few years ago via the theme (theme.liquid), so I’m wondering if this setup will still work or if I need to reinstall GTM via the custom pixel as well.
Finally, I followed your other tutorial to install the dynamic remarketing tag via the custom pixel. This means I no longer need to keep the dynamic remarketing GTM tag imported via the JSON file, correct?
It is best to have 1 tracking solution for dynamic remarketing, yes.
For conversion tracking, if it is all one code that you are using, and you have used the conversion label only on 1 GTM tag, that should not create double tracking.
Ok, and regarding enhanced conversions, do I still need to re-add GTM using your script or can I let the default one added in theme.liquid, in order for enhanced conversions to work ?
It depends on what you have done, as you can imagine, there are many ways to install conversion tracking. So if you want to ensure it works as intended, only use 1 tracking solution. So if you are using mine, then best to remove all other tracking for the same.
So my recommendation, either use, whatever you have setup, or fully use my solution, mix and matching will most likely cause issues.
Hi! Thank you for sharing the work. I want to ask about URL. Now, by implementing it through GTM, the pixel path is added, like:
However, I cannot locate the option to overwrite the default Page URL in Conversion Tracking tags. Can you help?
Search on the Shopify community for wpm, you will find topics about this. These URLs are now the norm. When using Pixels.
Hello,
Something wrong happens if I leave the Merchant Center connected to Shopify, the data is not sent to the ADS remarketing, I believe that tags in the container conflict with tags on the page, I would like to know if there is a way to leave the Merchant connected through the App, as I also have a store on YT
Unfortunately I am not able to fix issues, where 3rd party apps are causing tracking to not work. But thank you for sharing that the google and youtube app is causing issues with my code.
Can I delete the google and youtube app or is it needed for the custom pixel to work? And I assume you have a new data feed app, in that case yes as well.
Once you have confirmed the new setup is working, yes.
I did everything, but after 3 weeks I still only see ‘Requires Attention’ or ‘No Conversions’ and some say ‘inactive’ in google ads, what should I do?
Check the troubleshooting guide, also please note, if you are not using the shopify checkout, this will most likely not work.
Hi. I appreciate the work you do. I was installing the full version. I’m looking at the remarketing tag and have a couple of questions.
First, it looks like it should work with dynamic remarketing, correct?
Second, it looks like it’s triggered on all events you set up, but the variable for the items looks to only be items from a purchase. If so, is there a way for it to pull in the items from the other events to use the for dynamic remarketing?
Thanks.
Yes, it will work with dynamic remarketing.
Item details are added where possible, and required.
Please share examples / cases where you need it.
Hello, in this step: [Go to Workspace > Tags > Click on Google Ads Shopify Pixel Conersion Tracking By FeedArmy]
I see 12 tags instead of 1 (ATC, Begin checkout, cart viewed, etc). Should I do the next steps for each of the 12 or only the purchase one?
That is up to you, if you want to add micro conversion or not. You can skip it, if you like.
Hi Emmanuel,
I truly appreciate the hard work you’ve put into this project—it’s impressive! Thank you for sharing it. I’d love to contribute if possible. Do you have a GitHub repository or any version control system where I can collaborate and contribute?
Looking forward to your response!
Best regards,
Thank you for your kind words, unfortunately I do not use any repository system. Coding is a side hustle, and so I’m old school having versioning on my computer, not online. Feel free to share either via the comments, or you may email me at [email protected]
Thank you.
Thank you for response Emmanuel, I will reach out to you via email.
Hello Emmanuel,
I hope you are well!
Initially I got some tracked purchase conversion in google but today I had 2 sales and they are not showing up in google conversion, is that normal that some purchases not getting tracked or is there something I should to do check so that the tags are running correctly? I have not changed anything.
Assuming the sales are from Google Ads clicks, then it is indeed still possible it does not get tracked when a user opts out of tracking, or uses tools to not track.
I recommend to very 100% is to do a test purchase yourself, and make sure you click on your own ad, so that it can get tracked.
ok, i will check with them.
Hi, thank you very much for the code. But i am getting a warning in google analytics that the cookie consent is not working. What can i have done wrong?
Make sure you have a Cookie consent app installed and enabled, and follow the instruction of that app for any GTM specific settings.
Hi, i use shopify built in-function.
Check with Shopify / check the documentation how to integrate it with GTM. My guide does not handle cookie consent. I have only included 1 little part in the code for users, who know what they are doing, to force cookie cosent. For the rest, I am not able to guide you on this. So best to contact Shopify support.
Shopify says that i should check tags with https://chrome.google.com/webstore/detail/tag-assistant-legacy-by-g/ but that dont wotk with your code.
You can not test Shopify pixels, using developer tools or tag assistant, you need to instead use a chrome extension such as https://chromewebstore.google.com/detail/datalayer-checker-plus/blglfmihmnbhfgfbomofeljmididgfhe
See also the troubleshooting guide in my article that explains this.
thanks, will test that one.
Shopify says its not possible with your code to use shopify cookie consent. To bad but i will have to move on to other tracking solutions. Best of luck to you.
I believe Shopify meant, that shopify cookie consent does not work with Google Tag Manager. As my code is used by thousands of EU merchants, what they do is use a cookie consent app, then follow the instructions of that app setup the correct configuration in Google Tag Manager.
Yes,probably, but it works with gtm installed in liquid. For the moment i dont have much time over to do more tests now but might look in to it later.
Understood, I haven’t seen this issue on the clients I manage, so it’s possible there is a unique issue in your case.
Yes, that also possible. I have triple checked the install and all stuff i can think of but it dont work as it should with consent.
I changed a couple of shops to wetracked.io for a test and everything works there.
Thanks for the reply, it clarified a lot for me. We wish you all the best in your work!
Just complementing the doubt and demonstrating my case. The variables that are being blocked are country 30, shipping 29, returning-customer 24, city 34, phone 22 and postal code 25 from the code of the imported container JSON file.
Hello friends! Interaction here is always very good!
When viewing my tags in GTM (debug) I find the following blocks that are from variables in the JSON file.
“Tag blocked: {function: “__ogt_cross_domain”, instance_name: “_Tagging Activity Tag 24 Named Tagging Activity 10”, priority: 15, vtp_rules: [“list”, “^decoronline.com.br$”, “^decoronline -co.myshopify.com$”], tag_id: 24}” there are a total of 6 errors in the console, do you have any idea what is causing it?
My code does not be blocking anything. It only provides data.
Hello Emmanuel, Thank you for your services and I can see that your community is gaining more and more authority. It seems that my “google_business_vertical” is related to GA4 “ecomm_prodid” and “ecomm_totalvalue”, but I have more data received in “value” and “id”, do you think this circumstance is possible and would there be an option to change it?
Make sure to check in the last day or so, as the ecomm_totalvalue has been added to more events in the latest version, which may cause the overal 30 day data to look skewed. I’m not sure if this is what you meant.
Hello Emmanoel, congratulations on your work! I hope to also be contributing with my humble questions. I had problems with my optimized conversions and I managed to fix the “Purchase” but it is no longer causing problems (I also have not been able to collect specific data from the optimized conversions). Google is now requesting optimized conversations from the entire account. I added the optimized conversions to my checkout and cart tags, but when deploying the data layers I am not sure if they have a SHA-256, so I used automatic ones to test. Could you tell me if the data collection variable has a SHA-256 or if I can set it automatically for cart and checkout or if there is a specific one that you can pass on to us. All settings refer to GTM
The values collected are not SHA-256, as the values are not hashed, Google will automatically hash the values.
Hello Emmanuel!
Using your custom pixel now, seems to work well though I have little data yet but they all seem to be installed and not in “inactive mode”
I got an automatic suggestion to add xxxxx.myshopify.com as a link cross domain together with shop URL. Is that neccessary? And if I do can that mess with your pixel code?
Thank you for all the help!
/August
Yes it is needed if your checkout is on a different website.
Once we install this manual pixel conversion, can we uninstall google channel app or leave it as it is installed in Shopify. Please confirm.
Once you have verified and confirmed it is working, and you have a separate data feed submitted in Google Merchant center, yes you can delete it. You can also leave it, and just disconnect Google Ads.
I actually don’t use merchant center hence have not used it.
Understood, then no need to keep it in that case.
Thanks much for sparing time and helping millions.
My pleasure
Hello Emmanuel,
Just installed v2.0026, do I need to delete the remarketing pixel I have installed from your remarketing pixel guid below
https://feedarmy.com/kb/adding-google-adwords-remarketing-tag-to-shopify/
Thanks for your helpful tutorials.
It is best to pause the old code yes, when the new one is verified as working, you can go ahead and delete it.
Hi Emmanuel,
I set up the “Shopify Pixel with Enhanced Conversion & Micro Conversions + GA4” and deleted the GTM script by “theme.liquid” file. I installed the Clarity code, some customs micro conversions, and the cookie banner script in the GTM, but now I can’t see the cookie banner, ie. Do I need to use the GTM script in the theme.liquid file to use cookie banner script and other scripts in GTM? I appreciate your help!
I recommend contacting the cookie banner support team to ask how to install it.
Hi there! I’ve used your work before to help setup someone’s conversion tracking and it worked perfectly, unfortunately when I go to set it up this time when assigning conversion id to the tags in tag manager. I get an error message for: The value must be a positive integer or 0.
I know this is something on my end that i’ve forgotten to do separately from your setup but my brain won’t function today and wonder if you know the issue.
Double check the setup guide, and have a look at the troubleshoot guide, maybe something is causing an issue. If it then still doesn’t work, that means an app or setting in Shopify is blocking pixels from working.
In this case consider using a developer account to install a clean copy of the code, then slowly integrate apps, to check which one is causing an issue.
Hi, Thank you for helping most of us here.
1.What if we dont have or want to have merchant center, should we delete the line itself. We dont always connect merchant center.
2 Like if we only want to setup add to cart and purchase, can we just ignore all others and use only add to cart and delete the rest from tag manager ?
Thanks in advance
If you don’t want GMC to be connected, then remove the ID value for GMC in the code.
Yes, you can choose to only select the events you only want.