Skip to content

Instantly share code, notes, and snippets.

@E-Mud
Created February 27, 2018 10:18
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save E-Mud/5ab6d73f9b429a7f69e3214d4f802112 to your computer and use it in GitHub Desktop.
{{#if customer}}
<script>
(function() { window.satismeter = window.satismeter || function() {(window.satismeter.q = window.satismeter.q || []).push(arguments);};window.satismeter.l = 1 * new Date();var script = document.createElement("script");var parent = document.getElementsByTagName("script")[0].parentNode;script.async = 1;script.src = "https://app.satismeter.com/satismeter.js";parent.appendChild(script);})();
satismeter({
writeKey: "YOUR_WRITE_KEY",
userId: "{{ customer.id }}",
traits: {
name: "{{ customer.name }}",
email: "{{ customer.email }}"
}
});
</script>
{{/if}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment