Skip to content

Instantly share code, notes, and snippets.

Avatar

Alberto Casares E-Mud

View GitHub Profile
View bigcommerce-convtracking-satismeter.html
<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%%",
View bigcommerce-blueprint-satismeter.html
<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%%",
View bigcommerce-satismeter.html
{{#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 }}"
}
You can’t perform that action at this time.