Last active
March 27, 2019 14:36
-
-
Save huxleydias/d81e8f99551b1d28cd84b6adee91a4a8 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
// Errado: | |
var dataLayer = [{ | |
pageType: 'home' | |
}]; | |
// Correto: | |
window.dataLayer = window.dataLayer || []; | |
window.dataLayer.push({ | |
pageType: 'home' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment