Search documentation...

K
ChangelogBook a demoSign up

Proxying

You can run Hightouch Events on a custom domain by setting up a proxy. When using a proxy, clients send their event data to your domain rather than directly to Hightouch. This lets you have more control over your data.

Prerequisites

You'll need a certificate for whatever domain you plan to use for the proxy.

This guide uses Amazon Cloudfront, but any CDN or reverse proxy will work.

Proxying events

By default, events are sent to hightouch-events.com. But you can configure Hightouch to send events to your own domain instead.

First, create a Cloudfront distribution with the following settings:

SettingValue
Origin domainus-east-1.hightouch-events.com
Origin pathLeave this blank
NameGive your distribution a unique name
Enable Origin ShieldNo
Compress objects automaticallyYes
Viewer protocol policyHTTPS only
Allowed HTTP methodsGET, HEAD, OPTIONS, PUT, POST, PATCH, DELETE
Restrict viewer accessNo
Cache key and origin requestsCache policy and origin request policy
Cache policyCachingDisabled
Origin request policyAllViewer
Response headers policyNone
Function associationsNo associations
Alternate domain name (CNAME)The domain you want to expose to clients
Custom SSL certificateSelect a certificate that corresponds to the CNAME you entered
Supported HTTP versionsEnable HTTP/2 and HTTP/3
Default root objectLeave this blank
Standard loggingOff
IPv6On

Then, set your SDK's apiHost setting to the CNAME you configured. For example, if you are using the Browser SDK:

HtEventsBrowser.load(
  { writeKey: "WRITE_KEY" },
  { apiHost: "events.example.com" }
);

Ready to get started?

Jump right in or a book a demo. Your first destination is always free.

Book a demoSign upBook a demo

Need help?

Our team is relentlessly focused on your success. Don't hesitate to reach out!

Feature requests?

We'd love to hear your suggestions for integrations and other features.

Last updated: Nov 14, 2023

Was this page helpful?