Skip to content

Instantly share code, notes, and snippets.

@jsedlacek
Created December 7, 2016 20:39
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 jsedlacek/cd88aac6bd8fc4ae9883598f8e68d58a to your computer and use it in GitHub Desktop.
Save jsedlacek/cd88aac6bd8fc4ae9883598f8e68d58a to your computer and use it in GitHub Desktop.
satismeter-shopify integration
{% 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",
user: {
id: "{{customer.id}}",
name: "{{customer.name}}",
email: "{{customer.email}}"
}
});
</script>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment