> For the complete documentation index, see [llms.txt](https://help.leadboxer.com/leadboxer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.leadboxer.com/leadboxer/integrations/email/marketing-emails/customer.io.md).

# Customer.io

### Identify & track Customer.io email recipients on your website

### NOTE: this is a two-step process&#x20;

#### Step 1: Track email opens

To track mail open/reads from your Customer.io contacts in LeadBoxer, you need to add a LeadBoxer tracking pixel to your campaigns or templates.&#x20;

Here are the steps needed for adding the tracking pixel:

1. Go to your Campaigns, Broadcasts or Transactional templates
2. Choose the mail template you want to track
3. Add an HTML content type to the bottom of your template or email

   <figure><img src="https://1941892698-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_u92JFMboVvSv_dif4%2Fuploads%2FYeSFMAw2hff1YE7lKdP5%2FCustomer_io_and_Cralan_-_LeadBoxer_-_Slack.png?alt=media&amp;token=a97c3533-6398-41eb-b162-341008f09e18" alt=""><figcaption></figcaption></figure>
4. Click on the HTML block and paste your email tracking pixel into the box:

   <figure><img src="https://1941892698-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_u92JFMboVvSv_dif4%2Fuploads%2FUD55NxHOyE6yIUG7Tj1G%2FCustomer_io.png?alt=media&amp;token=7968b821-a3bc-46e8-9235-97723eb5c98e" alt=""><figcaption></figcaption></figure>

{% code overflow="wrap" %}

```html
<img alt="chart" src="https://track.leadboxer.com/log?datasetId=YOUR DATASET ID&campaign={{campaign.name}}-{{message.name}}&email={{customer.email}}" />
```

{% endcode %}

5. Save

**Notes:**

* Don't forget to change the DATASET ID to your own.&#x20;
* You can add additional data fields variables as parameters by simply adding these to the pixel, eg \&companyName={{customer.company}} or \&firstName={{customer.firstName}}, etc.
* For more details on advanced data fields in Customer.io see:&#x20;
* <https://customer.io/docs/journeys/drag-and-drop/#personalize-messages-with-user-data>

### Step 2: Track email clicks (click-throughs) and identify prospects on your site

To track email clicks, you need to (a) modify the links inside your email campaigns and (b) add this parameter to the URL of the link:

**?email={{customer.email}}**

This will allow us to identify the individual visitors when they land on your site.

<figure><img src="https://1941892698-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_u92JFMboVvSv_dif4%2Fuploads%2F16IIbCX1rNiLz4FGhR2A%2FCustomer_io_and___Cralan_-_LeadBoxer_-_1_new_item_-_Slack.png?alt=media&amp;token=ff80061a-6f0e-4b76-8fa4-49b41d940c54" alt=""><figcaption></figcaption></figure>

Optional, but recommended; add extra parameters to enrich visitors with additional information from your database:

**example URL**

{% code overflow="wrap" %}

```url
https://www.YOURDOMAINNAME.com/my-landing-page/?firstName={{customer.firstName}}&lastName={{customer.lastName}}&email={{email}}&companyName={{customer.companyName}}
```

{% endcode %}

NOTE: remember to update "my-landing-page" with your url.

{% hint style="warning" %}
Tip: Best practice is to test before sending out a mass email
{% endhint %}


---

# 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 current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.leadboxer.com/leadboxer/integrations/email/marketing-emails/customer.io.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
