Klaviyo is an excellent email marketing platform which can be easily connected to your Shopit store. If you want to capture email addresses and then send follow up marketing campaigns, this Klaviyo integration is ideal
Gathering Email Addresses
Creating the Javascript code to connect
For gathering information from a signup form, you will follow the Klaviyo instructions here and the guide below.
In your Klaviyo account, go to Account > Settings > API Keys
You should see a public API key of 6 characters - copy this and replace the 'Public API Key' part of the following code with those 6 characters:
Go to your Sales Channel > Design > Edit > Edit Template
Open base.html.twig
Scroll to the bottom of the code and paste the above javascript code before the closing </body> tag.
Save
Create the Embed Code
Visit Klaviyo and complete their initial signup process
Create a SignUp Form and customise as you wish
Choose the option to Embed
Klaviyo will provide a piece of short code like this: <div class="klaviyo-form-WtFXg2"></div>
You will need to post this code somewhere on your website, for example a footer, or on a page. (see below)
Posting your Sign up Form code in the footer
Go to your Sales Channel > Design > Edit > Edit Website
Scroll to the footer at the bottom and find a snippet you'd like to put the form in e.g. 'footer_block_1'
Click, and paste in the Klaviyo code.
If you want to change the width of the footer region, speak to a design (front end developer) about editing the base.html.twig file, or contact our Support team
Posting your Sign up Form code on a page e.g. contact us page
Go to your Sales Channel > Pages > e.g. contact page
Open the CMS editor and click Source in the top right corner
Paste in the Klaviyo code
Your front end website may take approx 10min to show the form depending on the cache. You will see the form live via the Design > Edit > Edit Website (editor)