Last active
March 24, 2016 20:08
-
-
Save dannytranlx/18d9228ee0896ae168ed to your computer and use it in GitHub Desktop.
Whisper on a timer
This file contains hidden or 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
// on checkout.liquid | |
<script> | |
setTimeout(function() { | |
Smooch.track('checkout-2mins'); | |
}, 120000); | |
</script> | |
// for customText and email | |
// in snippets/smooch.liquid | |
var skPromise = Smooch.init({ | |
appToken: "appToken", | |
serviceUrl: "https://app.smooch.io/", | |
emailCapturedEnabled: true, | |
customText: { | |
headerText: 'How can we help?', | |
inputPlaceholder: 'Type a message...', | |
sendButtonText: 'Send', | |
introText: 'This is the beginning of your conversation.<br/> Ask us anything!', | |
settingsText: 'You can leave us your email so that we can get back to you this way.' | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment