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.

This is my code in the google tag manager for the streaming updates:

<script type="text/javascript">
          "item": "ecommerce.detail.id",
          "name": "ecommerce.detail.name",
          "url": "ecommerce.detail.page_url",
          "item_type": "ecommerce.detail.category",
          "availability": "ecommerce.detail.availability",
          "regular_price": "ecommerce.detail.price",
          "image_url": "ecommerce.detail.image"

Here is the link to a product in our website where you can see the code installed.

Below are the errors that I'm getting in the console and the page source where you can see how these codes were installed:

Product Console

Page Source

Here are the docs I followed:

Stream Catalog Updates

Implementation Doc in MC

Personalization Builder Catalog Definitions

Thanks in advance!


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


_etmc.push(["updateItem",{item_type:"ecommerce.category",item:"ecommerce.detail.id",name:"ecommerce.name",url:"Page URL",available:"ecommerce.status",sale_price:"ecommerce.id.price"}]);

This is what I could find, if this is not what you are looking for, I will talk to my IT dept tomorrow and get back to you. Thank you


2 Answers 2


Short answer is that the collect script is not getting loaded by the time you are making your _etmc.push() calls. You have the below code to add in the collect script as async, and then are immediately after making your _etmc.push() calls in a sync script block. I would suggest removing the async load from the below script, which should ensure it is loaded by the time you attempt to utilize it.

(function(){var a=document.createElement("script");
var b=document.getElementsByTagName("script")[0];
b.parentNode.(a,b);return a})();

I just tested this code and it works:

<script type="text/javascript" src="https://XXXXX.collect.igodigital.com/collect.js"> </script>
 <script type="text/javascript"> 
 _etmc.push(["setOrgId", "XXXXXX"]);
  <script type="text/javascript">
          "item": "123456789",
          "name": "Gloves",
          "url": "https://ntoretail.com/shop/mens/accessories/1600100",
          "item_type": "product",
          "availability": "y",
          "regular_price": "5.00",
          "imagelink": "https://s3-us-west-2.amazonaws.com/nto-products/products1110/1600100.jpg"

  • Hi, Eazye, I am new to personalization builder and can't find an answer to a question that why does marketing cloud needs streaming updates to the catalog twice in a day when the images are static and uploaded/ changed one in a while. Jan 20, 2020 at 13:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .