Customize Default tp2 Path From URL

Hi Everyone,

The browser tracker sets the path param like this by default

I also see an option to configure multiple valid paths and point them to tp2 paths in the collector config.

Is there an option in the browser tracker to change the default path to something more specific to an organisation?

example: https://<your-collector-host>/

Thank you.

Hi @Jayant_Kumar please see the docs here: Initialization and configuration | Snowplow Documentation

Specifically the postPath option in the newTracker function.

Before you can use custom paths you will need to configure this in the Collector here: Configure the Stream Collector | Snowplow Documentation

1 Like

Thank you @josh
This is exactly what I was looking for.

I should’ve gone through it. It’s my bad.

Thank you for helping.