Setting up a product feed
Using a product feed integration it is possible to add purchase price data in the GTM server container. Currently, only WooCommerce webhooks are provided with purchase data. For installations that do not use a plugin, the webhook payload must look like this to take advantage of this feature https://gist.github.com/jeroenfrenken/29478eea79ae842e3ae816af27a27d8d
To set it up, you must have an XML feed in which the following fields are required:
product id (this must match the item_id used in the data layer)
purchase price
Fill in the following fields:
field 1 -> enter the XML feed url here. Make sure it is accessible. If authentication is chosen over the feed URL, it must be included in the query. The feed is refreshed every 24 hours for new data. The feed will also be refreshed after every save.
field 2 -> Enter the XML label here where the purchase price field can be found.
field 3 -> Enter the XML label here where the identifier can be found that overlays item_id in the data layer.
An example for selecting fields:
In this case, if we choose the sku field as identifier and price as purchase price, the fields are filled in as follows.
field 2 -> price
field 3 -> sku
Setting up the feed
To set it up, you must have an XML feed in which the following fields are required:
product id (this must match the item_id used in the data layer)
purchase price
Fill in the following fields:
field 1 -> enter the XML feed url here. Make sure it is accessible. If authentication is chosen over the feed URL, it must be included in the query. The feed is refreshed every 24 hours for new data. The feed will also be refreshed after every save.
field 2 -> Enter the XML label here where the purchase price field can be found.
field 3 -> Enter the XML label here where the identifier can be found that overlays item_id in the data layer.
An example for selecting fields:
In this case, if we choose the sku field as identifier and price as purchase price, the fields are filled in as follows.
field 2 -> price
field 3 -> sku
Updated on: 15/08/2024
Thank you!