Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Added new headers to tracker.

Mike Caoc38ac660cbf6
diff --git a/src/tracker/index.js b/src/tracker/index.js
index 4dca7365d..53bbf6b9e 100644
--- a/src/tracker/index.js
+++ b/src/tracker/index.js
@@ -177,6 +177,8 @@
body: JSON.stringify({ type, payload }),
headers: {
'Content-Type': 'application/json',
+ 'x-umami-website-id': website,
+ 'x-umami-hostname': hostname,
...(typeof cache !== 'undefined' && { 'x-umami-cache': cache }),
},
credentials,