Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- event: 'purchase', // name of the event. In this case, it always must be add_to_cart
- ecommerce: {
- items: [{ // an array with a product (or multiple products) that was added to a cart
- item_name: 'basic_monthly', // insert an actual product name
- price: '9.99', // insert an actual product price. Number or a string. Don't include currency code
- currency: 'USD'
- }]
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement