Created
November 3, 2021 16:02
-
-
Save tpage99/b523ca6830bdd4f7d65e493ed5937f22 to your computer and use it in GitHub Desktop.
Back in Stock for Klaviyo
This file contains hidden or 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
{% comment %} | |
Write-up here: https://help.klaviyo.com/hc/en-us/articles/360001895651-How-to-Install-Back-in-Stock-for-Shopify | |
{% endcomment %} | |
<script src="https://a.klaviyo.com/media/js/onsite/onsite.js"></script> | |
<script> | |
var klaviyo = klaviyo || []; | |
klaviyo.init({ | |
account: "[PUBLIC_API_KEY]", | |
platform: "shopify" | |
}); | |
klaviyo.enable("backinstock",{ | |
trigger: { | |
product_page_text: "Notify Me When Available", | |
product_page_class: "global-button global-button--secondary", | |
product_page_text_align: "center", | |
product_page_margin: "0 auto", | |
replace_anchor: false | |
}, | |
modal: { | |
headline: "{product_name}", | |
body_content: "Register to receive a notification when this item comes back in stock.", | |
email_field_label: "Email", | |
button_label: "Notify me when available", | |
subscription_success_label: "You're in! We'll let you know when it's back.", | |
footer_content: '', | |
additional_styles: "", | |
drop_background_color: "#000", | |
background_color: "#fff", | |
text_color: "#222", | |
button_text_color: "#fff", | |
button_background_color: "#f08048", | |
close_button_color: "#ccc", | |
error_background_color: "#fcd6d7", | |
error_text_color: "#C72E2F", | |
success_background_color: "#d3efcd", | |
success_text_color: "#1B9500" | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment