Created
June 24, 2018 09:00
-
-
Save seonews-ru/4b7f638d835e8e80c2220fc997ce313f to your computer and use it in GitHub Desktop.
Расширенный код электронной торговли для отслеживания покупок
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
dataLayer.push({ | |
'ecommerce': { | |
'currencyCode': 'RUB', | |
'purchase': { | |
'actionField': { | |
'id': 'T12345', | |
'affiliation': 'Online Store', | |
'revenue': '35.43', | |
'tax':'4.90', | |
'shipping': '5.99', | |
'coupon': 'SUMMER_SALE' | |
}, | |
'products': [{ | |
'name': 'Triblend Android T-Shirt', | |
'id': '12345', | |
'price': '15.25', | |
'brand': 'Google', | |
'category': 'Apparel', | |
'variant': 'Gray', | |
'quantity': 1, | |
'coupon': '' | |
}, | |
{ | |
'name': 'Donut Friday Scented T-Shirt', | |
'id': '67890', | |
'price': '33.75', | |
'brand': 'Google', | |
'category': 'Apparel', | |
'variant': 'Black', | |
'quantity': 1 | |
}] | |
} | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment