Skip to content

Instantly share code, notes, and snippets.

@marinhero
Last active July 19, 2019 15:35
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/0c51c0f6075927725c906d2132b593ed to your computer and use it in GitHub Desktop.
Save marinhero/0c51c0f6075927725c906d2132b593ed to your computer and use it in GitHub Desktop.
<script type="text/javascript">
window.wootricSettings = {
email:'nps@example.com',
created_at: 1528416000,
product_name: 'HUBSPOT NPS',
account_token: 'NPS-xxxxxxxx',
properties:{
pricing_plan:'pro',
favorite_color: 'red'
}
wootric('run');
</script>
<script type="text/javascript">
window.wootricSettings = {
email:'nps@example.com',
created_at: 1562803200,
product_name: 'HUBSPOT CSAT',
account_token: 'NPS-xxxxxxxx', // It still says NPS even if you are doing a CSAT survey
event_name: 'on_purchase', // This is our "entry point". Pass it if you are tracking events!
properties:{
pricing_plan:'pro',
favorite_color: 'red'
}
wootricSettings.event_name = 'on_login'; // You can redifine the event at any moment but you'll have to call run again
wootric('run');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment