All things Shopify and commerce
Hi all, I'm looking for a way to fire a custom pixel/GTAG when a product from a specific vendor is in someone's cart at checkout. We have the Shopify Google app integrated sitewide for our products, but would like to fire an event for our vendor when their products are in someone's cart. Is that possible/can someone point me to an example of this?
I've tried using the checkout/order object in "additional scripts" in the past with no luck.
Thanks!
Hi @jfree64
Order object contains data regarding product id or variant id not about the vendor or type of product.
Now you can write some code to retrieve the product id using order object.
Using product id you can retrieve the vendor information then you can fire your event.
Hope this will help...
Don't forget to like and mark as solution if it worked or seems logical.
Willing to hire someone to impliment details are in BIO.
User | RANK |
---|---|
52 | |
47 | |
40 | |
28 | |
21 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023