Hello @scullchr,
Thanks for sharing your question with the Klaviyo Community!
From my experience you would need to be using HTTPS and have a valid SSL certificate to connect Klaviyo with Magento.
To keep data separate, we typically recommend having two Klaviyo accounts, one account connected to your production site while the other is connected to your sandbox/test environment. For this reason your Klaviyo credentials allows for multi-account access which allows you to use the same credentials to access multiple Klaviyo accounts so long as you have been granted access to them. In addition, we also allow cloning of flows and email templates across Klaviyo accounts as detailed in the How to Copy Flows and Templates Between Klaviyo Accounts Help Center article.
@ashley_mcdermott also has several Community posts on this topic which I’ve included below:
I would suggest either SSL certifying your sandbox site to leverage the multi-account access suggestion mentioned or to leverage Magento’s capability to support multiple stores in the backend. If both your production site and sandbox site are sharing the same Magento backend, you can integrate your production site with Klaviyo which would further allow you to also connect your sandbox environment as well. Keeping in mind that using this method would cause both production and sandbox data to be shared within the same Klaviyo account as the data would not be separated.
I hope this helps!
David
Thank you. Much appreciated.