Using Klaviyo Forms with Lead Pages
If you are running an ecommerce store then Klaviyo is a must for your email marketing. With very little work you should be able to create a targeted offer to your existing buyers that pays for many months of their service.
You’ll want to install a copy of this script for each list and thank you page that you have setup. Using your FTP server upload it your site with a name that ends in .php
- Line 4 – get your API key from https://www.klaviyo.com/account#api-keys-tab. Create one and name it to something you will remember.
- Line 5 – get your Klaviyo list ID by clicking the List settings on the list you want people to be added to. It will be about 6 characters long and can also be found in the URL: https://www.klaviyo.com/list/mL4Ktx/settings for example
- Line 6 – set the thank you page that you want to deliver people to after they optin. Make sure it is a valid URL with the HTTP:// added to the front.
- Final step – in your leadpages form paste the code below. Just change the URL for where you installed the script above. You can delete the firstname section if you are just capturing the email address.
How it works – Basically the email is submitted to this script which then adds it to Klaviyo via the API.