> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.trackingmore.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to integrate Klaviyo with TrackingMore

# Here are the steps to connect Klaviyo with Trackingmore:

1. [Sign in](https://www.trackingmore.com/login.html) to TrackingMore account
2. Make sure you have an **active Klaviyo account** & [log in](https://www.klaviyo.com/login?next=/account#api-keys-tab) here
3. In Klaviyo, go to **Settings > Account > API Keys > Public API Key**, copy the public API key
![Copy klaviyo public API key](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_1a69gbf.png)
4. In Trackingmore, paste in the klaviyo public API key and click ${color}[#fc0303](Install App) to set up this integration
![Add Klaviyo](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_1yp64h5.png)
![Fill in Klaviyo plublic API Key and Install App](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_t48yb9.png)
5. Once you enter your Klaviyo API Key, you can use Trackingmore event metrics to trigger a flow.

# Setup notification in Klaviyo
1. Go to **Flows** page

![Click "Flows" section](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_1hou5sa.png)


2. **Create flow** from scratch or any existing flow

![Flow > create flow](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_33ns67.png)

![Create from scratch](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_6pfcd9.png)

![Name the flow, select a tag or create a new one >> create flow](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_vmbti1.png)

![Klaviyo Flow editor](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_1roivba.png)


3. Setup **trigger** by choosing _Trackingmore event_ in **Metric**

![Select the flow > metric](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_1mvvteo.png)

![Choose trackingmore event & done](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_aljdqn.png)


4. Choose any of Dimension of Trackingmore event
![Trigger filters](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_1eokzni.png)
![Add a trigger filter](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_zaghxy.png)
👀 Choose ${color}[#f90606](CurrentStatus), ${color}[#fb0909](**contains**) instead of "equals" and **type: ${color}[#f40101](list)** & **leave dimension value blank** to trigger **all** TrackingMore events: notfound, info received, transit, delivered, exception, expired
![Trigger all trackingmore events & save](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_ejcggy.png)

👀 Choose ${color}[#f90606](CurrentStatus), ${color}[#fb0909](**equals**) , a specific status in dimension value **type: ${color}[#f40101](text)** to trigger a **specific** TrackingMore event
![Choose a specific dimension to trigger & save](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_m70s80.png)


5. Update action statuses and done
![Update action statuses](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_1ba3hn0.png)
![Done](https://storage.crisp.chat/users/helpdesk/website/e0174a0b5e49b000/image_1tvfgkj.png)


### Available dimension of Trackingmore event inside Klaviyo:

| Property name | Template tag | Example |
| ------------ | ------------ | ------------ |
| CarrierName | {{ event.CarrierName }}  |  dhl |
| CarrierContact |   {{ event.CarrierContact }}| Contact number  |
| TrackingCode |   {{ event.TrackingCode }}| RA123123123CN  |
| OrderNumber|{{ event.OrderNumber }}|#12345|
| CurrentStatus|{{ event.CurrentStatus }}|Delivered|
| Substatus|{{ event.Substatus}}|delivered001|
| ExpectedDeliveryDate|{{ event.ExpectedDeliveryDate }}|2021/10/22|
| LastestCheckpointTime|{{ event.LastestCheckpointTime }}|2021/10/22 21:16|
| TransitTime|{{ event.TransitTime }}|7|
| OrderEmail|{{ event.OrderEmail}}|test@gmail.com|
| OrderPhone|{{ event.OrderPhone }}|+4478 2989 2347|
| OriginalCountryCode|{{ event.OriginalCountryCode }}|GB|
| DestinationCountryCode|{{ event.DestinationCountryCode}}|GB|
| ProductNames|{{ event.ProductNames}}|Product name|
| CustomerName|{{ event.CustomerName}}|Joe|
| CarrierTrackingLink|{{ event.CarrierTrackingLink}}|Carrier tracking page URL|
| OrderDate|{{ event.OrderDate}}|2022/06/05 12:00|
| Note|{{ event.Note}}|Custom text|### Variable name: `CurrentStatus`|

### Variable name:  `CurrentStatus`

| **CurrentStatus**  | **Description**  |
| ------------ | ------------ |
|notfound|Package tracking information is no available yet|
|infoReceived|The courier has received the package info and is about to pick up the package|
|transit|Courier has picked up package from shipper, the package is on the way to destination|
|delivered|The package was delivered successfully|
|expired|No tracking information for 30days for express service, or no tracking information for 60 days for postal service since the package added|
|exception|Package missed, addressee returned package to sender or other exceptions|

### Variable name:  `Substatus`

| **Substatus** | **Description** |
| ------------ | ------------ |
|delivered001|Package delivered successfully|
|delivered002|Package picked up by the addressee|
|delivered003|Package received and signed by addressee|
|delivered004|Package was left at the front door or left with your neighbour|
|exception004|The package is unclaimed|
|exception005|Other exceptions|
|exception006|Package was detained by customs|
|exception007|Package was lost or damaged during delivery|
|exception008|Logistics order was cancelled before courier pick up the package|
|exception009|Package was refused by addressee|
|exception010|Package has been returned to sender|
|exception011|Package is beening sent to sender|
|transit001|Package is on the way to destination|
|transit002|Package arrived at a hub or sorting center|
|transit003|Package arrived at delivery facility|
|transit004|Package arrived at destination country|
|transit005|Customs clearance completed|

