> 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/hubspot.md).

# HubSpot

{% hint style="info" %}
Make sure you also enable our [HubSpot Integration](/leadboxer/integrations/other/hubspot.md), as this will sync all your existing contacts with LeadBoxer and allow you to enrich your HubSpot contacts with LeadBoxers rich firmographic and marketing data.
{% endhint %}

Tracking HubSpot marketing emails is easy.

To track email open events, either add this tracking image to your template as a piece of HTML

{% code overflow="wrap" %}

```html
<img src="https://track.leadboxer.com/log?datasetId=YOUR_DATSET_ID&campaign=Newsletter&email={{contact.email}}"/>
```

{% endcode %}

Alternatively, you can add an image from an URL  like this:

![](//d33v4339jhl8k0.cloudfront.net/docs/assets/565e1cb7c697915b26a5c214/images/5d9f34c22c7d3a7e9ae25805/file-Z3n5jih2z8.png) ![](//d33v4339jhl8k0.cloudfront.net/docs/assets/565e1cb7c697915b26a5c214/images/5d9f352f2c7d3a7e9ae2581d/file-AheGf4jI5H.png)

***

Make sure you enable the HubSpot integration so we can connect your HubSpot contacts with LeadBoxer leads.

See instructions here: <https://help.leadboxer.com/leadboxer/integrations/other/hubspot>&#x20;

Optionally, you can also identify your HubSpot contacts using merge tags on the links to your site.

To track link clicks and identify these readers on our site you need to be appended with a parameter like in this example:

{% code overflow="wrap" %}

```url
https://www.leadboxer.com/?email={{contact.email}}&firstName={{contact.firstname}}&lastName={{contact.lastname}}&companyName={{company.name}}
```

{% endcode %}

![](//d33v4339jhl8k0.cloudfront.net/docs/assets/565e1cb7c697915b26a5c214/images/5d9f372404286364bc903d64/file-NstHPmk2UM.png)


---

# 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/hubspot.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.
