Hi, we have an outlet within our Shopify store and I want to capture emails before users enter the outlet by triggering a pop up that acts like a wall - so user has to enter email details before entry.
I have followed the very helpful step by step process to create a custom trigger (sign up form) and pasted the code onto the relevant Shopify page but the form is not showing up. Here’s the code:
<button class="klaviyo_form_trigger">Click here</button>
<script type="text/javascript">
document.querySelector('.klaviyo_form_trigger').addEventListener('click', function (){
window._klOnsite = window._klOnsite || [];
window._klOnsite.push(['openForm', 'VwTBSM']);
I have pasted it into custom liquid heading within Shopify.
Does anyone know what I am missing as I am sure I am close to doing this.