SEO, AdWords, affiliates, advertising, and promotions
Hi Shopfiers,
We would like to improve our online marketing by optimising towards contribution margin rather than revenue. However, we are running into a bundle of issues with this and I thought maybe someone here could help.
1. We would like to pass "cost per item" to the Tag Manager to use pass contribution margin along to e.g. Google (which offers 'cost_of_goods_sold' as an attribute in its conversion pixel). However, as far as I see it there is neither the cost item field in the orderItems array nor is there a total sum that I could access in the liquid. Any chance I could get this field available in checkout?
2. Where possible we do not implement our own tracking but use the shopify sales channel instead (e.g. for Facebook). Is there any way to manipulate the value that is used as conversion value for the sales channels?
I appreciate all tipps and hints that help us improve on the way from measuring revenue to contribution margin.
Thanks a lot!
Torge
1) I recommend and assume by now you have a Google Merchant Center feed, is to submit the data via Cost of Goods : https://support.google.com/merchants/answer/9017895
However if you also want this for text ads, then consider custom variables: https://support.google.com/google-ads/answer/9962082#zippy=%2Cconversion-tracking-using-tags-on-your...
Dear @EmmanuelFlossie,
thanks a lot for being in touch and for your reply. I would really loke to 'fix' this for other platforms like Criteo, BingAds etc. as well so I prefer a solution that passes the values I need to GTM so I could use them there. However, as far as I see it it is neither possible to extract the value from the 'cost per item' field nor from a metafield in checkout. Or is there any way to get these on the order confirmation site?
Currently the checkout objects does not include COGs, so the first option I mentioned is the only one for Google Merchant Center.
You may check: https://shopify.dev/api/liquid/objects/checkout
Like what Emmanuel said, the best way to do this for Google Ads is through Merchant Center. You can see what the process of setting up COGS in a feed through a third-party tool here https://www.digitaldarts.com.au/google-shopping/feed-shopify
Dear @EmmanuelFlossie and @Josh_Uebergang thanks a lot for your replies and your help. Much appreciated! Unfortunately the item meta fields are not part of the line_item object. So it seems you could really just 'solve' this for Google currently. Thanks!
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025