Skip to content

Conversation

@katzino
Copy link
Contributor

@katzino katzino commented Mar 28, 2025

Add proxy support to track analytics page views

@katzino katzino added adhoc Ad-hoc unplanned task added during the sprint. t-web Issues with this label are in the ownership of the web team. labels Mar 28, 2025
@katzino katzino added this to the 111st sprint - Web Team milestone Mar 28, 2025
@katzino katzino self-assigned this Mar 28, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds proxy support for tracking analytics page views by updating the analytics.load method in the configuration.

  • Updated the analytics.load call to include a proxy configuration through the integrations parameter.
  • Adjusted the analytics script initialization to route requests to the specified proxy API host.
Comments suppressed due to low confidence (1)

docusaurus.config.js:54

  • [nitpick] Consider extracting the integration configuration into a named constant for improved clarity and easier future maintenance, which could also allow using an environment variable for the proxy host if needed.
analytics.load("${process.env.SEGMENT_TOKEN}", { integrations: { "Segment.io": { apiHost: "analytics.apify.com/v1" }}});

@katzino katzino merged commit a52517b into master Mar 31, 2025
7 checks passed
@katzino katzino deleted the feat/analytics-proxy branch March 31, 2025 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-web Issues with this label are in the ownership of the web team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants