Server-Side
This doc covers information on sending server side events into Freshpaint.
The Javascript source is the easiest way to collect data with Freshpaint. The Javascript source automatically collects data from your site and lets you retroactively create events from the collected data.
We recommend that you track events server-side in the following scenarios:
- 1.Offsite events: when a user interaction is not on a website or app (for example, using your API)
- 2.Revenue events: the event for completing a purchase (for example, a user may click the 'Purchase' button, but that purchase may time out)
Sometimes you can make an argument for tracking an event either client-side or server-side. We recommend that you should only consider tracking events server-side in the following scenario:
- 1.Essential events to operations: For example, events that you trigger a critical email drip from (so that users don't get left out or sent the wrong emails).
To send server-side events to Freshpaint, you should use the Freshpaint HTTP API. Take a look at HTTP API reference for how to go about sending events to Freshpaint.
After sending a server side event to Freshpaint, you will see it show up in the server-side section on the events page. From here, you'll be able to send the event to any of the Destinations you've set up in Freshpaint.

Not all destinations accept server-side events. Here's a list of destinations you can send server-side events to:
- Amplitude
- Azure Synapse Analytics
- BigQuery
- Customer.io
- Google Analytics
- Iterable
- Klaviyo
- Mixpanel
- MySQL
- Panolpy
- Postgres
- Redshift
- S3
- Snowflake
Last modified 7mo ago