Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer = ({ ecommerce:null }); // Clears the previous ecommerce object to prevent recursive merge.
- window.dataLayer.push({
- event: 'Berglind Hreiðarsdóttir', // Create one for each Matgæðingur
- ecommerce: {
- items: [{
- item_name: 'Ískaka með karamellu og pekanhnetum', // insert an actual recipe name
- item_category: 'Flokkur', // insert an actual recipe top-level category
- item_category2: 'Matargerð', // if it is possible to drill down the categories (e.g. Flokkur, then Matargerð, then Matgæðingur), use item_category2, item_category3, etc. Can use from item_category up to item_category5
- index: 1, // insert recipe position in that list
- },{
- item_name: 'Pizza með burrata og hráskinku', // insert an actual recipe name
- item_category: 'Flokkur', // insert an actual recipe top-level category
- item_category2: 'Matargerð', // if it is possible to drill down the categories (e.g. Flokkur, then Matargerð, then Matgæðingur), use item_category2, item_category3, etc. Can use from item_category up to item_category5
- index: 2, // insert recipe position in that list
- }]
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement