Skip to content

feat: Allow configuring analytics API endpoint separate from flags API - #195

Open
matthewelwell wants to merge 1 commit into
mainfrom
feat/support-separate-analytics-url
Open

feat: Allow configuring analytics API endpoint separate from flags API#195
matthewelwell wants to merge 1 commit into
mainfrom
feat/support-separate-analytics-url

Conversation

@matthewelwell

@matthewelwell matthewelwell commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

This PR ports flagsmith-nodejs-client#168 to the .NET client. It allows for the URL to which analytics data is posted to be changed from the default. This allows users to bypass the edge proxy for example, which doesn't support analytics.

@matthewelwell
matthewelwell requested a review from a team as a code owner August 18, 2026 08:26
@matthewelwell
matthewelwell requested review from khvn26 and removed request for a team August 18, 2026 08:26
@matthewelwell
matthewelwell marked this pull request as draft August 18, 2026 08:30
@matthewelwell
matthewelwell force-pushed the feat/support-separate-analytics-url branch from 1f52b7d to 279c30e Compare August 18, 2026 08:36
@matthewelwell matthewelwell changed the title feat: Allow configuring analytics API endpoint separate from flags API feat!: Allow configuring analytics API endpoint separate from flags API Aug 18, 2026
Currently, we only support having the analytics API on the same host as
the flags/identities endpoints. This is not the case when using Edge
Proxy, which does not accept analytics requests.

This change adds `FlagsmithConfiguration.AnalyticsUri` to configure an
arbitrary analytics endpoint URI, and adds an `AnalyticsProcessor`
constructor overload taking that full URI, so it can also be used
directly to manage analytics manually. The existing `baseApiUrl`
constructor and `GetInstance` are unchanged.

Ports Flagsmith/flagsmith-nodejs-client#168.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@matthewelwell
matthewelwell force-pushed the feat/support-separate-analytics-url branch from 279c30e to 6230d70 Compare August 18, 2026 08:42
@matthewelwell matthewelwell changed the title feat!: Allow configuring analytics API endpoint separate from flags API feat: Allow configuring analytics API endpoint separate from flags API Aug 18, 2026
@matthewelwell
matthewelwell marked this pull request as ready for review August 18, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant