Last active
March 20, 2018 18:45
-
-
Save E-Mud/a3f06dfee5ea9e73f3627c5b5e76913c to your computer and use it in GitHub Desktop.
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
<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 firstName ="%%GLOBAL_CurrentCustomerFirstName%%"; | |
if (firstName !== "" && firstName !== "Guest") { | |
satismeter({ | |
writeKey: "YOUR_WRITE_KEY", | |
userId: "%%GLOBAL_CustomerId%%", | |
traits: { | |
name: firstName + " %%GLOBAL_CurrentCustomerLastName%%", | |
email: "%%GLOBAL_CustomerEmailAddress%%" || "%%GLOBAL_CustomerEmail%%" | |
} | |
}); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment