Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'FB_product_contents_array': [{
- 'id': '82340387',
- 'quantity': 2,
- 'item_price': '0.89',
- 'prod_category': 'Φωτιστικά/Λάμπες/Λάμπες Led'
- }],
- 'custom_event_name': 'add_to_cart',
- 'total_items_value': 1.78,
- 'items': [{
- 'id': '82340387',
- 'google_business_vertical': 'retail'
- }],
- 'event': 'eec.add_to_cart',
- 'ecommerce': {
- 'currencyCode': 'EUR',
- 'add': {
- 'actionField': {
- 'list': 'Search Results' // Τη product list που ήταν όταν επισκέφτηκαν το product page και πάτησαν add to cart. Τιμή από breadcrumb στο product list.
- },
- 'products': [{
- 'name': 'Λάμπα LED SMD 9 W Ε27',
- 'id': '82340387',
- 'price': '0.89',
- 'brand': 'no name',
- 'category': 'Φωτιστικά/Λάμπες/Λάμπες Led',
- 'variant': '',
- 'quantity': 2,
- 'coupon': '',
- 'dimension6': 'Deco',
- 'dimension7': 'True',
- 'dimension9': 'True',
- 'dimension10': 'True'
- }] //ανάλογα το πόσα προϊόντα αγοράστηκαν να υπάρχουν αντίστοιχα arrays όπως τα παραπάνω.
- }
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement