Parameters reference
Usermaven accepts the same set of parameters in both the npm package and HTML snippet versions; the only difference is in the naming convention -- in the npm package, parameters should be referenced as param_name
, while in the HTML snippet they should be referred to as data-param-name
.
Usermaven accepts the following parameters.
Parameter | Value |
---|---|
key * | Required. API key |
tracking_host
| If no specific setting is provided, Usermaven will make its best effort to identify the requirements automatically. For HTML snippets, the script location host will be taken into account. As for npm packages, t.usermaven.com is the standard host. |
autocapture
| Automatically capture frontend events i.e button clicks, form submission etc. Accepted values are |
cookie_name
| Name of tracking cookie ( |
cookie_domain
| Domain of the tracking cookie (by default this is
|
randomize_url
| If set to true, Usermaven will emit events to a dynamic endpoint, which prevents the blocking of advertisements. |
ip_policy
|
|
cookie_policy
|
|
privacy_policy
| This parameter is just shortcut for |
force_use_fetch
| This parameter forces SDK to use the fetch implementation (custom or default) even in browser |
exclude
| You can implement page-specific exclusions by utilizing the data-exclude attribute. To prevent particular pages from being monitored, follow this method: i.e In the given example, any pages beginning with the "/embed/" path will be omitted from tracking. |
custom_headers | (Not available as This parameter adds custom headers to each request. Can be either a static object ( |