Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'IsLoggedIn': 'True',
- 'IsWAC': 'True',
- 'IsLAC': 'True',
- 'IsCustomer': 'True',
- 'LTV': 150.30,
- 'IsLMTeam': 'True',
- 'FB_product_contents_array': [{
- 'id': '82340387',
- 'quantity': 1,
- 'item_price': '0.89',
- 'prod_category': 'Φωτιστικά/Λάμπες/Λάμπες Led'
- }],
- 'custom_event_name': 'view_item',
- 'total_items_value': 0.89,
- 'items': [{
- 'id': '82340387',
- 'google_business_vertical': 'retail'
- }],
- 'event': 'eec.productDetailImpression',
- 'ecommerce': {
- 'currencyCode': 'EUR',
- 'detail': {
- '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': '',
- 'coupon': '',
- 'dimension6': 'Deco',
- 'dimension7': 'True',
- 'dimension9': 'True',
- 'dimension10': 'True'
- }] //ανάλογα το πόσα προϊόντα αγοράστηκαν να υπάρχουν αντίστοιχα arrays όπως τα παραπάνω.
- }
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement