Deploy to Heroku

Heroku is the easiest way to get started with EventNative. If you don't have an active Heroku account you can signup here!

Getting Running on Heroku

  • Pick a destination for your event data, we recommend starting with Redshift.

  • Click our Deploy to Heroku link.

  • Add your EventNative configuration in raw JSON format.

JSON Configuration

Make sure to update server.auth parameter with generated UUID and all values in <> with your credentials. You can see where to get these from the corresponding guides (Redshift, BigQuery).

Redshift
BigQuery
Postgres
ClickHouse
Redshift
{
"server":{
"public_url": "<APP NAME>.herokuapp.com",
"auth": "<Generated UUID>"
},
"destinations": {
"redshift": {
"mode": "batch",
"datasource": {
"host": "<your_host>",
"db": "<your_db>",
"username": "<your_username>",
"password": "<your_password>"
},
"s3": {
"access_key_id": "<your_access_key>",
"secret_access_key": "<your_secret_access_key>",
"bucket": "<your_bucket>",
"region": "<your_region>"
},
"data_layout": {
"table_name_template": "events"
}
}
}
}
BigQuery
{
"server": {
"public_url": "<APP NAME>.herokuapp.com",
"auth": "<Generated UUID>"
},
"destinations": {
"bigquery": {
"mode": "batch",
"google": {
"gcs_bucket": "<your_bucket>",
"bq_project": "<your_project>",
"key_file": "{place a content of your JSON key here}"
},
"data_layout": {
"table_name_template": "events"
}
}
}
}
Postgres
{
"server": {
"public_url": "<APP NAME>.herokuapp.com",
"auth": "<Generated UUID>"
},
"destinations": {
"postgres": {
"mode": "stream",
"datasource": {
"host": "<your_host>",
"db": "<your_db>",
"username": "<your_username>",
"password": "<your_password>"
},
"data_layout": {
"table_name_template": "events"
}
}
}
}
ClickHouse
{
"server": {
"public_url": "<APP NAME>.herokuapp.com",
"auth": "<Generated UUID>"
},
"destinations": {
"my_clickhouse": {
"mode": "stream",
"type": "clickhouse",
"clickhouse": {
"dsns": [
"http://username:password@host:port/db?read_timeout=5m&timeout=5m&enable_http_compression=1&other_clickhouse_parameters"
],
"db": "<your_db>"
},
"table_name_template": "events"
}
}
}

If you're using BigQuery, please copy JSON content of BigQuery key file and place it under key_file node!

Once your backend is set up, place the following code on your web-app. (See our JavaScript guide for fine-tuning):

<script src="https://[your_app].herokuapp.com/t/inline.js?key=<SERVER_AUTH_FROM_CONFIG>" async >
</script>