Track conversions with Freshpaint
Freshpaint is a healthcare privacy platform that works as a customer data platform (CDP). It collects customer data from your website or app, standardizes it, and sends it to your marketing, advertising, and analytics tools. Freshpaint is designed for healthcare and other regulated organizations. Its privacy controls, such as allowlists that limit which events and properties reach each destination, help you keep sensitive data out of the tools that receive it.
Freshpaint's Rokt destination sends conversion events from Freshpaint to Rokt server to server. Rokt uses these events to attribute conversions to your campaigns and optimize campaign delivery.
This guide explains how to define your conversion events, configure the Rokt destination, map conversion properties, and test the integration.
PrerequisitesDirect link to Prerequisites
Before you begin, make sure you have:
- A Freshpaint account with permission to add and configure destinations.
- A Rokt API key and API secret for your account. Ask your Rokt account manager for these credentials.
- A list of the conversion events that you want to send to Rokt, including the event that Rokt should optimize toward.
Define your conversion eventsDirect link to Define your conversion events
-
Choose the events to send to Rokt. Most advertisers send one optimization event, such as a booking or sign-up, and, where relevant, one downstream event, such as a completed first session or purchase.
-
Give each event a stable, neutral name, such as
booking_completedorsignup_completed. Freshpaint sends this name to Rokt as the conversion type.cautionEvent names must not reveal sensitive information. Don't include health conditions, diagnoses, treatments, or other protected health information in event names.
-
Send your Rokt account manager the exact event names and a one-line description of when each event fires so that Rokt can configure reporting to match.
Get your Rokt credentialsDirect link to Get your Rokt credentials
- Ask your Rokt account manager for an API key and API secret.
- Receive the credentials through a secure channel, such as a password manager. Don't share credentials over email or chat.
- Store the credentials in your secrets manager. The API key and secret are specific to your account.
Add the Rokt destination in FreshpaintDirect link to Add the Rokt destination in Freshpaint
- In Freshpaint, add the Rokt destination.
- Enter your Rokt API key and API secret. You don't need to enter an endpoint.
- Save the destination.
Map conversion event propertiesDirect link to Map conversion event properties
Map the following properties on each conversion event that you send to Rokt.
| Property | Description | Required |
|---|---|---|
| Conversion type | The event name that you defined in Define your conversion events. | Yes |
| The user's plain-text email address. Freshpaint lowercases, trims, and SHA-256 hashes the email address before sending it to Rokt, so don't hash it yourself. | Yes | |
| Rokt Click ID | Freshpaint captures the Rokt Click ID automatically. For more information, see Rokt Click ID. | Set automatically |
| Timestamp | Freshpaint uses the time when the event occurred. You don't need to send a timestamp. | Set automatically |
| Confirmation reference | A unique order, booking, or confirmation ID. Rokt uses the confirmation reference with the conversion type to deduplicate repeated events. | Recommended |
| Amount | The conversion value as a string, such as "99.99". | Optional |
| Currency | The ISO 4217 currency code, such as "USD". Send with Amount. | Optional |
| Phone number | An additional match key. Send the user's plain-text phone number. Freshpaint normalizes the phone number to digits only and SHA-256 hashes it before sending it to Rokt. | Optional |
| First name and last name | Additional match keys. Send the user's plain-text first and last name. Freshpaint SHA-256 hashes them before sending them to Rokt. | Optional |
| IP address | An additional match key. | Optional |
| User agent | An additional match key. | Optional |
Rokt requires an email address on each conversion event. The Freshpaint Rokt destination doesn't send events without an email property. If you need to send events where no email address is available, contact your Rokt account manager.
Rokt Click IDDirect link to Rokt Click ID
Your Rokt account manager adds the Rokt Click ID to your campaign landing page URLs as the rtid parameter, for example, https://www.example.com/landing?rtid=<click ID>. For more information, see Rokt Click ID.
Freshpaint captures the Rokt Click ID automatically, with no extra setup:
- When a user lands on a page with
rtidin the URL, Freshpaint stores the value in its first-party cookie. - The stored value persists across the user's later sessions in the same browser, so conversions that happen after the landing session still include the Rokt Click ID.
- If the user later lands with a new
rtidvalue, the new value replaces the stored one. - Freshpaint sends the stored Rokt Click ID to Rokt with the user's conversion events.
Confirm that the rtid parameter is preserved through any redirects between the ad click and your landing page. If a redirect drops the parameter, Freshpaint can't capture it.
Rokt attributes conversions that include the Rokt Click ID directly to a Rokt click. Without the Rokt Click ID, Rokt matches conversions by email address and any other identifiers that you send.
Test the integration and go liveDirect link to Test the integration and go live
-
Send a test conversion for each event.
-
In Freshpaint, check the delivery log for the Rokt destination. Rokt returns
202 Acceptedfor each request it receives.noteA
202 Acceptedresponse confirms that Rokt received the request, not that Rokt processed it successfully. Any other response means that Rokt rejected the event. If you receive a401or403response, check your API key and secret. For any other response, contact your Rokt account manager. -
Ask your Rokt account manager to confirm that the test data arrived with the correct conversion types, Rokt Click IDs, and email addresses.
-
After your Rokt account manager confirms the test data, they can launch your Rokt campaign.
Data handlingDirect link to Data handling
Email is the only identifier that Rokt requires. All other properties are optional, so you can send only what your use case needs.
- Freshpaint SHA-256 hashes email addresses, phone numbers, and first and last names before sending them to Rokt. The plain-text values don't leave Freshpaint.
- Freshpaint sends other optional properties, such as date of birth, ZIP code, city, and state, to Rokt as provided, without hashing them.
- For healthcare customers, Freshpaint gives each destination an allowlist. Allowlist only the events and properties that you want to send to Rokt. Freshpaint blocks anything that isn't on the allowlist.
- Don't include health information, diagnoses, provider details, or appointment content in event names or properties.
- Confirm with your compliance team which events and properties are appropriate to send for your use case.