# Pipedrive Campaigns

### Step 1: Track email opens

To track mail open/reads from your Pipedrive Campaigns into 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 campaign or template
2. Add an HTML element in where we can add our tracking pixel

   <figure><img src="/files/ZiUeLxddjdGYLy6OKvFU" alt=""><figcaption></figcaption></figure>
3. paste in your email tracking pixel in the HTML element:

{% code overflow="wrap" %}

```html
<img src="https://track.leadboxer.com/log?datasetId=YOUR DATASET ID&campaign=my-campaign&email=*|EMAIL|*">
```

{% endcode %}

Close and Save

Notes:

* Don't forget to change the <mark style="color:red;">DATASET ID</mark> to your own
* Change the campaign value to reflect the email title or campaign name&#x20;
* You can add other template variables as parameters if you have them, eg&#x20;

```url
&firstName=*|FIRST_NAME|*
```

{% hint style="info" %}
Pipedrive does not list all the merge fields you can use in their documentation, but you can get these by using the merge tag dropdown.
{% endhint %}

### Step 2: Track email clicks and identify prospects on your site

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

**`?email=*|EMAIL|*`**

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

Optionally but recommended, you should add additional parameters to enrich the visitor with other information from your database:

**example URL**

{% code overflow="wrap" %}

```url
https://www.YOURDOMAINNAME.com/my-landing-page/?firstName=*|FIRST_NAME|*&lastName=*|LAST_NAME|*&email=*|EMAIL|*&companyName=*|ORG_NAME|*
```

{% endcode %}

Tip: Best practice is to test before sending out a mass email

***

To see more on For more details see these pages:

<https://support.pipedrive.com/en/article/drag-drop-editor>


---

# Agent Instructions: 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:

```
GET https://help.leadboxer.com/leadboxer/integrations/email/marketing-emails/pipedrive-campaigns.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
