Skip to content

Instantly share code, notes, and snippets.

@linkerzx
Created October 22, 2018 22:23
Show Gist options
  • Save linkerzx/8ad5b9942b9b893cf7098659d9e12300 to your computer and use it in GitHub Desktop.
Save linkerzx/8ad5b9942b9b893cf7098659d9e12300 to your computer and use it in GitHub Desktop.
setting up data from a data layer in javascript
var checkoutType;
checkoutType="Guest";
if(Checkout.data.user.email != null){
checkoutType="Loggedin";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment