Mainstack allows you to easily connect your storefront to key platforms such as Klaviyo and Facebook Pixel. These integrations help you automate email marketing, track conversions, and optimize your campaigns for better results. This guide will walk you through setting up and managing these integrations.

The Klaviyo integration with Mainstack allows you to automate email marketing campaigns and create personalized email flows for your customers. By connecting your storefront to Klaviyo, you can segment your audience, send targeted emails, and optimize your customer retention strategies.

When you integrate Klaviyo with your Mainstack storefront, your customer data, such as email addresses and purchasing behavior, is automatically synced with your Klaviyo account. This allows you to create more effective and tailored email marketing campaigns and automations.

If you don’t already have a Klaviyo account, sign up at klaviyo.com.
Copy Your Klaviyo API Keys
Log in to your Klaviyo account and go to the Account settings.
Navigate to the API Keys section, where you'll find your Public API Key and Private API Key. Copy both of these keys as you’ll need them to complete the integration.
Connect the Integration
Log in to your Mainstack account and go to Account Settings.
Click on Storefront Settings, then navigate to Integrations.
Under the Klaviyo section, click the Connect button.
Paste both your Public API Key and Private API Key into the provided fields.
Click Save, and the integration is complete!
Now your Mainstack storefront is connected to Klaviyo, and you can start automating your email campaigns and audience segmentation.

To disconnect Klaviyo from your Mainstack storefront:
Go to Account Settings in Mainstack.
Click on Storefront Settings, then select Integrations.
Under Klaviyo, click Disconnect to unlink the integration.


Once the Facebook Pixel integration is set up, the pixel will track actions on your storefront, such as page views, add-to-cart events, and completed purchases. This data is sent back to Facebook, allowing you to optimize your ads, target specific audiences, and measure campaign performance.

If you don’t already have a Facebook Pixel account, you’ll need to create one. Head to the Facebook Business website to set up your Pixel and get your tracking code.
Copy Your Facebook Pixel Code
Log in to your Facebook Business Manager account and navigate to the Pixels section under Events Manager.
Copy your Facebook Pixel code, which you’ll need for the integration.
Connect the Integration
Log in to your Mainstack account and go to Account Settings.
Click on Storefront Settings, then navigate to Integrations.
Under Facebook Pixel, click the Connect button.
Paste your Facebook Pixel code into the provided field and click Save.
Now your storefront is connected to Facebook Pixel, and you can start tracking conversions and optimizing your campaigns.

To disconnect Facebook Pixel from your Mainstack storefront:
Go to Account Settings in Mainstack.
Click on Storefront Settings, then select Integrations.
Under Facebook Pixel, click Disconnect to unlink the integration.
By following the steps above, you'll be able to automate key marketing functions and gather valuable insights to make data-driven business decisions.