Skip to content

Instantly share code, notes, and snippets.

@E-Mud
Last active March 20, 2018 18:45
Show Gist options
  • Save E-Mud/c85ff928f5824809a77bd7a1b87ce9fd to your computer and use it in GitHub Desktop.
Save E-Mud/c85ff928f5824809a77bd7a1b87ce9fd to your computer and use it in GitHub Desktop.
<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);})();
var orderId = "%%ORDER_ID%%";
if (orderId) {
satismeter({
writeKey: "YOUR_WRITE_KEY",
userId: orderId,
traits: {
email: "%%ORDER_EMAIL%%",
orderId: orderId
}
});
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment