# Connect Klaviyo

To connect Klaviyo follow these steps:

1. **Open app settings and select Klaviyo in integration section.**\
   In Gift Card Factory, navigate to Settings. Next turn on Klaviyo integrartion:

<figure><img src="/files/WEq1mBEr1O6p2Yja8vZX" alt=""><figcaption></figcaption></figure>

2. **Find your Klaviyo Public API Key**\
   Open your Klaviyo dashboard. Navigate to Account Settings -> API Keys. You will find your API Key inside Public API Key section.

<figure><img src="/files/qJ3BSjEtra5DeglbGd8c" alt=""><figcaption></figcaption></figure>

3. **Add the key to Gift Card Factory**\
   Copy the Public API Key and add it to app settings under *Klaviyo Public API Key.* Click save. Lastly send placeholder metrics by clicking on Send test metrics button and providing Contact email address. This will register all app metrics in your Klaviyo account. As a next step you can configure a flow that will take actions based on metrics sent by the app.\ <br>

   <figure><img src="/files/crrwE6r2i367LjhC43Vk" alt=""><figcaption></figcaption></figure>

You can use any of the metrics to trigger Klaviyo flow. Different metric is sent for different app feature.\
\
Klaviyo Metrics Reference

This document maps each Klaviyo metric to the app feature (campaign or bulk operation) that triggers it.

### Quick Reference Table

| Klaviyo Metric                            | Feature Type   | Feature Name                                                               |
| ----------------------------------------- | -------------- | -------------------------------------------------------------------------- |
| Gift Card Factory - Bulk Send             | Bulk Operation | [Bulk Send](/bulk-operations/bulk-send.md)                                 |
| Gift Card Factory - Import From File      | Bulk Operation | [Import From File](/bulk-operations/import-from-file.md)                   |
| Gift Card Factory - Store Credit Bulk Add | Bulk Operation | [Store Credit Bulk Add](/bulk-operations/store-credit-bulk-add.md)         |
| Gift Card Factory - Rewards               | Campaign       | [Gift Card Rewards](/campaigns/gift-card-rewards.md)                       |
| Gift Card Balance Reminder                | Campaign       | [Gift Card Reminders](/campaigns/gift-card-reminders.md)                   |
| Gift Card Factory - Scheduled Gift Cards  | Campaign       | [Scheduled Gift Cards](/campaigns/scheduled-gift-cards.md)                 |
| GCP Gift Card Email                       | Campaign       | [Gift Card Postman](/campaigns/gift-card-postman.md) (recipient)           |
| GCP Gift Card Sender Email                | Campaign       | [Gift Card Postman](/campaigns/gift-card-postman.md) (sender notification) |
| Gift Card Factory - Refund                | Campaign       | [Refund](/misc/app-emails/sending-domain/postmark.md)                      |

{% hint style="info" %}
App does not send Klaviyo metrics from **Shopify Flow**. If you need to send Klaviyo metric from Shopify Flow, you need to use Track an Event block as per screenshot below
{% endhint %}

<figure><img src="/files/rOiEMWqkYOzFkWUjtDrF" alt="" width="375"><figcaption></figcaption></figure>

### Next steps

[Learn how to create Klaviyo Flows](/integrations/klaviyo/klaviyo-flows.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.giftcardfactory.app/integrations/klaviyo/connect-klaviyo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
