Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

rm attributes

Blue Mouse51f4b9a197d1
diff --git a/src/Lib.ts b/src/Lib.ts
index 272719169..7fa47eb03 100644
--- a/src/Lib.ts
+++ b/src/Lib.ts
@@ -104,12 +104,6 @@ export interface FeatureFlagsOptions {
* If not provided, rollout-based flags may return different results on each evaluation.
*/
visitorId?: string
-
- /**
- * Visitor attributes for targeting rules.
- * Common attributes: cc (country), dv (device), br (browser), os (operating system), pg (page).
- */
- attributes?: Record<string, string>
}
/**
@@ -421,7 +415,7 @@ export class Lib {
try {
const apiBase = this.getApiBase()
- const body: { pid: string; visitorId?: string; attributes?: Record<string, string> } = {
+ const body: { pid: string; visitorId?: string } = {
pid: this.projectID,
}
@@ -429,10 +423,6 @@ export class Lib {
body.visitorId = options.visitorId
}
- if (options?.attributes) {
- body.attributes = options.attributes
- }
-
const response = await fetch(`${apiBase}/feature-flag/evaluate`, {
method: 'POST',
headers: {