> For the complete documentation index, see [llms.txt](https://docs.growsurf.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.growsurf.com/integrations/klaviyo.md).

# Klaviyo

Update Klaviyo contacts with their unique share link and referrer information.

## Sync with your Klaviyo List <a href="#sync-with-your-mailerlite-group" id="sync-with-your-mailerlite-group"></a>

**Step 1:** In *Program Editor > 4. Options > Integrations*, open the Klaviyo integration card and enter your Klaviyo API secret ([click here to get your Klaviyo private API key](https://help.klaviyo.com/hc/en-us/articles/115005062267-How-to-Manage-Your-Account-s-API-Keys#find-your-api-keys1)).

{% hint style="info" %}
Connect Klaviyo before importing participants. If participants are already in your program, follow [these ESP sync options](https://support.growsurf.com/article/385-how-can-i-sync-my-growsurf-participants-to-my-esp) to send their GrowSurf data to Klaviyo.
{% endhint %}

![](https://2794996218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LeklWo0yn03AhWro2Ux%2F-MQI9nVpXrlTfvNHKfeK%2F-MQIBvMGwSQslhgTna6p%2FScreen%20Shot%202020-12-31%20at%201.16.54%20PM.png?alt=media\&token=f0f476fa-d8d7-4640-a255-ed6f88a641e0)

**Step 2:** Once connected, choose the Klaviyo list that you want to automatically sync to. GrowSurf will add/update your Klaviyo contacts every time a new participant is added or referred to your referral or affiliate program.

**Step 3:** Save changes. You should now see a screen that looks like the one below:

![](https://2794996218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LeklWo0yn03AhWro2Ux%2F-MQK_q5I5Xqsd50BhId-%2F-MQMEINC18u6WKCf4kkT%2FScreen%20Shot%202020-12-31%20at%201.23.20%20PM.png?alt=media\&token=a795e0ef-889a-4b38-909f-134c6969d22d)

## Examples

[View our Klaviyo tutorials](https://docs.growsurf.com/additional-integrations/klaviyo/tutorials) to see different kinds of examples that you can copy/paste into your email templates.

## **Custom Properties** <a href="#subscriber-fields" id="subscriber-fields"></a>

GrowSurf will automatically create these new properties for your Klaviyo contacts.

| **Property Name**                        | **Custom Property Tag**                                  | **Type** | **Description**                                                                                                                                                                                           | **Example**                                                |
| ---------------------------------------- | -------------------------------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| **GrowSurf Share URL**                   | `{{ person\|lookup:'GrowSurf Share URL' }}`              | TEXT     | The participant's unique referral link                                                                                                                                                                    | <https://growsurf.com?grsf=absc123>                        |
| **GrowSurf Participant ID**              | `{{ person\|lookup:'GrowSurf Participant ID' }}`         | TEXT     | The participant's unique GrowSurf ID                                                                                                                                                                      | abc123                                                     |
| **GrowSurf Referral Status**             | `{{ person\|lookup:'GrowSurf Referral Status' }}`        | TEXT     | The referral status for the participant                                                                                                                                                                   | CREDIT\_ PENDING                                           |
| **GrowSurf Participant First Name**      | `{{ person\|lookup:'GrowSurf Participant First Name' }}` | TEXT     | The participant's first name                                                                                                                                                                              | Bob                                                        |
| **GrowSurf Participant Last Name**       | `{{ person\|lookup:'GrowSurf Participant Last Name' }}`  | TEXT     | The participant's last name                                                                                                                                                                               | Loblaw                                                     |
| **GrowSurf Referrer First Name**         | `{{ person\|lookup:'GrowSurf Referrer First Name' }}`    | TEXT     | The first name of the participant's referrer (if applicable)                                                                                                                                              | Gavin                                                      |
| **GrowSurf Referrer Last Name**          | `{{ person\|lookup:'GrowSurf Referrer Last Name' }}`     | TEXT     | The last name of the participant's referrer (if applicable)                                                                                                                                               | Belson                                                     |
| **GrowSurf Referrer Email**              | `{{ person\|lookup:'GrowSurf Referrer Email' }}`         | TEXT     | The email address of the participant's referrer (if applicable)                                                                                                                                           | <gavin.belson@hoolie.io>                                   |
| **GrowSurf Total Referral Count**        | `{{ person\|lookup:'GrowSurf Total Referral Count' }}`   | NUMBER   | The participant's all-time referral count                                                                                                                                                                 | 0                                                          |
| **GrowSurf Lead Count**                  | `{{ person\|lookup:'GrowSurf Lead Count' }}`             | NUMBER   | The participant's current lead count (pending referrals that have not converted yet)                                                                                                                      | 0                                                          |
| **GrowSurf Monthly Referral Count**      | `{{ person\|lookup:'GrowSurf Monthly Referral Count' }}` | NUMBER   | The participant's current month referral count                                                                                                                                                            | 19                                                         |
| **GrowSurf Prev Monthly Referral Count** | `{{ person\|lookup:'Prev Monthly Referral Count' }}`     | NUMBER   | The participant's previous month referral count                                                                                                                                                           | 20                                                         |
| **GrowSurf Next Milestone**              | `{{ person\|lookup:'GrowSurf Next Milestone' }}`         | TEXT     | The text for the next/upcoming milestone reward (only applies to milestone rewards. [See an example here](https://docs.growsurf.com/developer-tools/embeddable-elements#embedded-next-milestone))         | You are only 2 referrals away from winning a free t-shirt! |
| **GrowSurf Next Monthly Milestone**      | `{{ person\|lookup:'GrowSurf Next Monthly Milestone' }}` | TEXT     | The text for the next/upcoming monthly milestone reward (only applies to milestone rewards. S[ee an example here](https://docs.growsurf.com/developer-tools/embeddable-elements#embedded-next-milestone)) | You are only 2 referrals away from winning a free t-shirt! |
| **GrowSurf Total Invite Count**          | `{{ person\|lookup:'GrowSurf Total Invite Count' }}`     | NUMBER   | The participant's all-time invite count                                                                                                                                                                   | 112                                                        |
| **GrowSurf Total Impression Count**      | `{{ person\|lookup:'GrowSurf Total Impression Count' }}` | NUMBER   | The participant's all-time impression count                                                                                                                                                               | 150                                                        |

\**GrowSurf Referral Status* can have one of these values:

* `CREDIT_PENDING`: The participant must trigger a referral before their referrer receives credit.
* `CREDIT_AWARDED`: The participant triggered a referral, and their referrer received credit.
* `CREDIT_EXPIRED`: The participant did not trigger a referral before the referral credit expired.

You can use these new properties in your Klaviyo email templates. For example, use `{{ person|lookup:'GrowSurf Share URL' }}` to add each participant's unique referral link.

[​Click here to learn more about Klaviyo's template tags and variables.​](https://help.klaviyo.com/hc/en-us/articles/115005084927-Template-Tags-and-Variable-Syntax)

## **Troubleshooting Tips** <a href="#troubleshooting-tips" id="troubleshooting-tips"></a>

* Check the participant's activity logs if they do not sync. GrowSurf retries failed syncs for up to 7 days.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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 following URL with the `ask` and `goal` query parameters:

```
GET https://docs.growsurf.com/integrations/klaviyo.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

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.
