In order to get Rebuy reporting to work for your headless store you will need to add custom line item properties to any product added from a recommendation/widget.
β
The first property you need to add is:
β
"_source: Rebuy"
This key / value pair is mandatory and cannot be altered. This will tell Rebuy that it was added from a recommendation/widget and to show it in our reporting.
The use of the key name _source
is required and cannot be altered. This will trigger Rebuy analytics to collect the data. In the event that you're already using the key _source
for your line item properties that will need to be changed in order to allow your headless Rebuy reports to work correctly.
β
Next will you want to add an attribution property to specify a specific widget or place on your site.
β
You will do that like so:
"_attribution: test widget"
You can replace test widget with any custom property for all your different use cases.
That custom attribution property will then show in your Rebuy Reports