Created
December 7, 2016 20:39
-
-
Save jsedlacek/cd88aac6bd8fc4ae9883598f8e68d58a to your computer and use it in GitHub Desktop.
satismeter-shopify integration
This file contains 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
{% 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