This help article walks through how to capture Instagram handles with your Klaviyo popup and automatically send them to your Gatsby account for influence data & automation.

Step 1: 

Log into Klaviyo >> Signup Forms >> Create a field for Instagram name:

Step 2: 

Set the Profile Property as: instausername and publish changes

Step 3: 

If you are using Shopify, login to your admin console >> Online Store >> Actions >> Edit Code

Open Theme.Liquid:

Paste the following code directly above the </body>:


window.addEventListener("klaviyoForms", function(e) {
 if (e.detail.type == 'submit') {
gatsbyKlaviyoIntegration(btoa('your email address for Gatsby'),e.detail.metaData["$email"],e.detail.metaData["instausername"]);


And just replace the [bold field] with your email address tied to your Gatsby account. It is case sensitive. 

Note: if you do not have a Gatsby account, make one quickly here.

Step 4:

If you installed Gatsby originally via the app in the Shopify App Store, then you are done and click save.

If you installed Gatsby manually, then make sure you have the main script file also on theme.liquid. If this doesn't make sense, follow this guide here:

Let us know any questions!

Did this answer your question?