SHOW:
|
|
- or go back to the newest paste.
| 1 | window.dataLayer = window.dataLayer || []; | |
| 2 | window.dataLayer.push({
| |
| 3 | event: 'view_item', // name of the event. In this case, it always must be view_item | |
| 4 | - | ecommerce: {
|
| 4 | + | ecommerce: {
|
| 5 | items: [{
| |
| 6 | - | item_name: 'Vision', // insert an actual product name (Vision/ Vision Plus/ Vision Max) |
| 6 | + | item_name: 'Alpecin-Fenix Sweatpants 2022', // insert a product name |
| 7 | - | price: '25.000', // insert an actual product price (Vision: 25.000, Vision Plus: 55.000, Vision Max: 125.000). Number or a string. Don't include currency code |
| 7 | + | item_id: 'CIT30283', // insert an actual product ID |
| 8 | - | item_brand: 'Santander Consumer Bank', |
| 8 | + | price: '49.90', // insert an actual product price. Number or a string. Don't include currency code |
| 9 | - | item_category: 'Vision', // Vision/ Vision Plus/ Vision Max |
| 9 | + | item_brand: 'FDMKR', |
| 10 | item_category: 'Team Alpecin - Fenix', // category of a product | |
| 11 | item_category2: 'Sweatpants', // subcategory of a product (type of clothing) | |
| 12 | item_variant: 'L', // variant of a product, if there are no variants, exclude this key from the dataLayer.push | |
| 13 | quantity: '1' // always '1' | |
| 14 | }] | |
| 15 | } | |
| 16 | }); |