Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analytics.js bridge (Segment) #153

Merged
merged 20 commits into from
Aug 21, 2024
Merged

Analytics.js bridge (Segment) #153

merged 20 commits into from
Aug 21, 2024

Conversation

AlexITC
Copy link
Collaborator

@AlexITC AlexITC commented Aug 21, 2024

This allows collector to behave as a backend for the Segment JavaScript SDK (analytics.js).

This feature needs to be enabled explicitly by updating the collector's config:

  experimental {
    enableAnalyticsJsBridge = true
  }

Then, clone the analytics.js file and replace api.segment.io/v1 by $collectorHost/com.segment/v1, for example b0c37.ngrok-free.app/com.segment/v1.

These events from analytics.js SDK are supported:

  • Page
  • Identity
  • Track
  • Group
  • Alias
  • Screen

With this, users can replace Segment with Opensnowcat Collector.

@AlexITC AlexITC merged commit 87d87a5 into main Aug 21, 2024
4 checks passed
@AlexITC AlexITC deleted the analyticsjs-bridge branch August 21, 2024 20:30
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