I am unsure if this question is 'outside the scope' of this forum, but I have nowhere else to turn to. We've gone back and forth with Salesforce support trying to solve this, but they're no help and we're still stumped.
We are trying to implement Einstein Email recommendations under personalization builder in the Marketing Cloud. We installed the dynamic javascript code in our website using google tag manager. When we try to upload the catalog using streaming updates it gives us an error. Support said it was because we had to link a website with a pipe delimited file, however we followed the documentation to the letter and did not find any sort of code for that (I'm in marketing not IT) or explanation as to how to add that. Anybody know how to do this?
I apologize again if this is outside the scope of this forum or if it's too much I'm asking for.
Here is the code we used for the streaming updates:
<script type="text/javascript">
_etmc.push(["updateItem",
{
"item": "INSERT_ITEM",
"unique_id": "INSERT_UNIQUE_ITEM_ID",
"name": "INSERT_ITEM_NAME_OR_TITLE",
"url": "INSERT_ITEM_URL",
"item_type": "INSERT_ITEM_TYPE",
"INSERT_ATTRIBUTE_NAME": "INSERT_ATTRIBUTE_VALUE"
}
]);
</script>
For the code above we changed the "INSERTS" to match the variables in the website. We inserted more attributes per the documentation in the 3rd link.
Here are the docs I followed:
[Stream Catalog Updates][1]
[Implementation Doc in MC][2]
[Personalization Builder Catalog Definitions][3]
Thanks in advance!
UPDATE:
Payload from site:
var dataLayer = [{
"site": {
"domain": "gaveteiro.com.br",
"name": "Gaveteiro",
"country": "BR",
"application": "desktop"
},
"page": {
"template": "Product"
},
"session": {
"isLogged": false,
"user": {
"id": "0",
"salesforceID": "0",
"accountId": "0",
"accountSalesforceID": "0"
}
},
"ecommerce": {
"detail": {
"id": "0058000135",
"name": "Macacao de Protecao Covertech 100 G - Volk",
"price": "0.00",
"original_price": "12.21",
"variant": "unica",
"brand": "VOLK",
"category": "Vestimenta Descartável",
"status": "Sob Encomenda",
"status_id": "2",
"image": "https://res-1.cloudinary.com/gaveteiro/image/upload/v1563216875/jxlbg6qqprxbh8hxhs5r.jpg",
"page_url": "https://www.gaveteiro.com.br/macacao-de-protecao-covertech-100-g-volk/pg/LyB62W",
"availability": "http://schema.org/OutOfStock"
}
},
"remarketing": {
"ecomm_pagetype": "product",
"ecomm_prodid": "LyB62W",
"ecomm_category": "Vestimenta Descartável",
"ecomm_totalvalue": "12.21"
},
"event": "eventRemarketingDinamico"
}];
I believe this is it [1]: https://help.salesforce.com/articleView?id=mc_ctc_streaming_updates.htm&type=5 [2]: https://mc.exacttarget.com/cloud/#app/Email%20Recommendations/ftux/documentations/web [3]: https://help.salesforce.com/articleView?id=mc_pb_catalog_field_definition.htm&type=5