Hello Shopify Experts!
My client has about 5000 products and I need a good way to segment them for use in Google Shopping campaigns. We are trying to streamline their feed and make it easier to use and a little more dynamic - so it can flex with the changes they make to product items over time.
Right now they are set up (by their former agency) on an API into Google Merchant Center which is managed by a very strange and complex series of feed rules that are now outdated (as the product titles and categories change).
The client has a robust set of tags added to each product on Shopify.
Can we pull those tags into Merchant Center as product type attributes? Can these tags be converted into metafields and then pulled into their product feed as product type attributes?
Any help you can provide would be greatly appreciated!
If you need to convert tags to metafields try the usemechanic it lets you write simple scripts to run on shopify stores.
shopify's metafields may not be what you think they are https://help.shopify.com/en/manual/products/metafields
they are not the same as googles shoppings metafields in CSV's
They cannot just be renamed them without also making sure the data is transferred using the api https://shopify.dev/docs/admin-api/rest/reference/metafield
Update a metafield. The namespace and key of an existing metafield can't be changed.
I don't think using tags for product types are a good idea.
The field product type is essiantly your breadcrumbs of the site. Not designed for other non navigational data. For that you are best to add the tags in the custom label attribute.
Also tags will output as values separated by commas. So you will need to use a search replace to replace comma with >
Even then it's rather pointless as in a lot of cases the tags will not be in the same order. Making it very irregular in format.
So building something based on tags, for campaign segmentation would not be a good idea.
Also the product type is used to help Google understand your products more, by adding random data, you may loose out on ranking.
For more info on custom labels : https://support.google.com/merchants/answer/6324473
And if you really want to do this, my application has a feature that can map tags to product type, and do a search and replace for comma to >. However again I don't recommend doing this from a data feed quality perspective.