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'
- },
- {
- 'id': '82311264',
- 'quantity': 1,
- 'item_price': '4.99',
- 'prod_category': 'Διακόσμηση/Μαξιλάρια & Ριχτάρια/Ριχτάρια'
- }],
- 'total_num_items': 3,
- 'custom_event_name': 'checkout',
- 'total_items_value': 6.77,
- 'items' : [{
- 'id': '82340387',
- 'google_business_vertical': 'retail'
- },
- {
- 'id': '82311264',
- 'google_business_vertical': 'retail'
- }],
- 'event': 'eec.checkout',
- 'ecommerce': {
- 'currencyCode': 'EUR',
- 'checkout': {
- 'actionField': {
- 'step': 1, // Το βήμα στο checkout funnel.
- 'option': 'Home Delivery - Courier' // Τιμές: Home Delivery - Courier / Home Delivery - Pavement / Home Delivery - InHouse / Pick Up Point
- },
- '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'
- },
- {
- 'name': 'Ριχτάρι Polar industrial Μ180xΠ120 cm σε χρώμα γκρι',
- 'id': '82311264',
- 'price': '4.99',
- 'brand': 'Polar',
- 'category': 'Διακόσμηση/Μαξιλάρια & Ριχτάρια/Ριχτάρια',
- 'variant': '',
- 'quantity': 1,
- 'coupon': '',
- 'dimension6': 'Deco',
- 'dimension7': 'True',
- 'dimension9': 'True',
- 'dimension10': 'True'
- }] //ανάλογα το πόσα προϊόντα αγοράστηκαν να υπάρχουν αντίστοιχα arrays όπως τα παραπάνω.
- }
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement