Skip to content

Instantly share code, notes, and snippets.

@marinhero
Created August 20, 2018 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marinhero/cba38ed2d4040792249a3fd9323026ca to your computer and use it in GitHub Desktop.
Save marinhero/cba38ed2d4040792249a3fd9323026ca to your computer and use it in GitHub Desktop.
<!-- begin Wootric code -->
<script type="text/javascript">
wootric_survey_immediately = true; //TODO:comment this in production
window.wootricSettings = {
email:'nps@example.com', //TODO: Required to uniquely identify a user. Email is recommended but this can be any unique identifier.
created_at: 1234567890, //TODO:replace it with date when your customer signed up
account_token: 'NPS-XXXX', //TODO:replace it with your account token
properties: {} //Make sure you initialize it, with or without values.
};
</script>
<script type="text/javascript" src="https://cdn.wootric.com/wootric-sdk.js"></script>
<script type="text/javascript">
var email_domain = wootrcSettings.email.split('@');
if (email_domain) {
window.wootricSettings.properties.email_domain = email_domain[1];
}
</script>
<script>window.wootric("run")</script>
<!-- end Wootric code -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment