Hi @kkontti
Thank you for posting in the Community!
Could you possibly elaborate? Would love to help! :-)
Christian Nørbjerg Enger
Partner & CPO
Web: Segmento.dk
LinkedIn: @christianfromsegmento
Voldbjergvej 22b, 8240 Risskov
Hi @kkontti,
The issue you're encountering is because the Klaviyo API link requires proper authentication to access campaign details. Without authentication, you won't be able to retrieve or display the campaign information on your website.
Here's how you can resolve it:
-
Generate an API Key
- In Klaviyo, go to Account Settings > API Keys and create a private key with the required permissions.
-
Set Up a Backend Server
- Use a backend (e.g., Node.js) to securely fetch campaign data from Klaviyo.
-
Fetch Data on the Frontend
- Call your backend endpoint from your website.
-
Secure the API Key
- Store the API key in environment variables and never expose it in frontend code.
By setting up a backend to handle the API request, you can securely display campaign data on your site.
Let me know if you need help.
Best Regards,
+2349023453575
Hello @kkontti , It looks like you're trying to display the campaign from Klaviyo on your website, but the link isn’t working because it's not authorized. To show the campaign visually on your site, you'll need to use an API key to authenticate the request.
Here's how you can do it:
- Get an API Key: Go to your Klaviyo account settings and generate an API key.
- Add Authorization: When making the request to the campaign link, make sure you include the API key in the headers for authorization.
- Display the Campaign: Once the request is authorized, you can use the campaign data (usually in HTML format) to display it on your website.
If you’re unsure how to implement this, I recommend reaching out for help with setting up the authorization and embedding the campaign on your site.