-
-
Save luratic-devs/711bfffd47dcf8b502d3bbc47906f221 to your computer and use it in GitHub Desktop.
Máster Webpositer - Ejemplos dataLayer Universal Analytics
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
//Código DataLayer productClick | |
dataLayer.push({ | |
"event": "productClick", | |
"ecommerce": { | |
"click": { | |
"actionField": { | |
"list": "shirts you may like" | |
}, | |
"products": [{ | |
"id": "9bdd2", | |
"name": "Compton T-Shirt", | |
"price": "44.00", | |
"brand": "Compton", | |
"category": "T-Shirts", | |
"position": "2" | |
}] | |
} | |
} | |
}); | |
//Código DataLayer - RemoveFromCart | |
dataLayer.push({ | |
"event": "removeFromCart", | |
"ecommerce": { | |
"currencyCode": "USD", | |
"remove": { | |
"products": [{ | |
"id": "035f0", | |
"name": "Futuris T-Shirt", | |
"price": "55.00", | |
"brand": "Futuris", | |
"category": "T-Shirts", | |
"variant": "red", | |
"dimension1": "M", | |
"position": 0, | |
"quantity": 1 | |
}] | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment