# 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="https://2895247924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcsKliv3CuXU7kN4gxX9B%2Fuploads%2FuXn94TRPTpZGBHRPowrT%2Fimage.png?alt=media&#x26;token=c8000a12-975a-44a3-b447-881ba7e7d819" 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.&#x20;

<figure><img src="https://2895247924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcsKliv3CuXU7kN4gxX9B%2Fuploads%2FjGizr79iOFEQ5j1Zd1Mt%2Fimage.png?alt=media&#x26;token=06f28859-e535-4ecc-baeb-641a6f25a3df" 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="https://2895247924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcsKliv3CuXU7kN4gxX9B%2Fuploads%2Fb5bDs0dHfM2cgN9cpumJ%2Fimage.png?alt=media&#x26;token=7acbde05-7db9-49b8-85dd-28c38faa61b5" 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](https://docs.giftcardfactory.app/bulk-operations/bulk-send)                                 |
| Gift Card Factory - Import From File      | Bulk Operation | [Import From File](https://docs.giftcardfactory.app/bulk-operations/import-from-file)                   |
| Gift Card Factory - Store Credit Bulk Add | Bulk Operation | [Store Credit Bulk Add](https://docs.giftcardfactory.app/bulk-operations/store-credit-bulk-add)         |
| Gift Card Factory - Rewards               | Campaign       | [Gift Card Rewards](https://docs.giftcardfactory.app/campaigns/gift-card-rewards)                       |
| Gift Card Balance Reminder                | Campaign       | [Gift Card Reminders](https://docs.giftcardfactory.app/campaigns/gift-card-reminders)                   |
| Gift Card Factory - Birthday Gift Card    | Campaign       | [Birthday Gift Cards](https://docs.giftcardfactory.app/campaigns/birthday-gift-cards)                   |
| GCP Gift Card Email                       | Campaign       | [Gift Card Postman](https://docs.giftcardfactory.app/campaigns/gift-card-postman) (recipient)           |
| GCP Gift Card Sender Email                | Campaign       | [Gift Card Postman](https://docs.giftcardfactory.app/campaigns/gift-card-postman) (sender notification) |
| Gift Card Factory - Refund                | Campaign       | [Refund](https://docs.giftcardfactory.app/misc/app-emails/sending-domain/postmark)                      |

{% 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&#x20;
{% endhint %}

<figure><img src="https://2895247924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcsKliv3CuXU7kN4gxX9B%2Fuploads%2FmmQ4CUnLolsm0x9C5xKx%2Fimage.png?alt=media&#x26;token=64abb02e-d903-40f4-98b8-e8d2c860e809" alt="" width="375"><figcaption></figcaption></figure>

### Next steps

[Learn how to create Klaviyo Flows](https://docs.giftcardfactory.app/integrations/klaviyo/klaviyo-flows)
