PageSourceSearch

https://cdn.efcoshop.ru/static/89a5c/ecommerce.js

js efcoshop.ru collected 2026-10-05 00:04:03 UTC 1,314 bytes, 63 lines download raw bytes

1window.dataLayer = window.dataLayer || [];
2
3ecommerce = {};
4ecommerce.yandex = {
5  product_view: function(products){
6	  console.log('view');
7    dataLayer.push({
8      "ecommerce": {
9        "detail": {
10          "products": products
11        }
12      }
13    });
14  },
15  add: function(products){
16	  console.log('add');
17    dataLayer.push({
18      "ecommerce": {
19        "add": {
20          "products": products
21        }
22      }
23    });
24  },
25  remove: function(products){
26	  console.log('rm');
27    dataLayer.push({
28      "ecommerce": {
29        "remove": {
30          "products": products
31        }
32      }
33    });
34  },
35  purchase: function(products, order_id){
36	  console.log('pursh');
37    dataLayer.push({
38      "ecommerce": {
39        "purchase": {
40          "actionField": {
41            "id" : order_id //номер заказа
42          },
43          "products": products
44        }
45      }
46    });
47  },
48  send: function(products){
49	  console.log('send');
50    jQuery.each(products, function (i, product) {
51      // console.log(product);
52      var type = product.action,
53          p = {
54            id: product.id,
55            name: product.name,
56            price: product.price,
57            quantity: product.quantity,
58            special: product.special
59          };
60      ecommerce.yandex[type]([p]);
61    });
62  }
63};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.