Questions tagged [segment-analytics]

Segment provides an API that collects and routes customer data to over 160 different tools and database services.

26 questions
7
votes
2 answers

com.segment.analytics.android:analytics noncompliant version in my app on the Google Play Console

My app is written on android native code and I got this warning on the play store console Your app "appName" version code "xxxx" includes SDK com.segment.analytics.android:analytics or an SDK that one of your libraries depends on, which collects…
5
votes
0 answers

Is there any way to force Segment JS client to use IPv6 instead of IPv4?

I have a device which has both IPv4 and IPv6 address. In my rails application, the request comes through Cloudflare, and the IP address extracted from X-Forwarded-For is IPv6 address. But when I sent a tracking event from JS client, it uses IPv4 by…
3
votes
1 answer

Flutter with Segment Analytics

I am trying to add Segment-Analytics to a Flutter app but currently, after adding the lib my app seems to be unable to start, however the build was still successful. lib: https://pub.dev/packages/flutter_segment when i run flutter run: Waiting for…
Rickky13
  • 431
  • 4
  • 17
3
votes
1 answer

Create a CDN proxy in Google Cloud for Segment analytics

I want to create a cdn proxy to send analytic events through a custom domain as detailed here: https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/custom-proxy/ However, in their tutorial they use Amazon CloudFront.…
Alex Fox
  • 1,175
  • 2
  • 15
  • 27
3
votes
2 answers

How can I speed up this count + group by query over a large table?

I have a Postgres table with anonymous_id(string) and timestamp (datetime) columns created by Segment.com when users visit our website. There are ~5M rows, ~1M distinct anonymous_id I'd like to query the number of distinct anonymous_ids found per…
Guy Bowden
  • 4,997
  • 5
  • 38
  • 58
2
votes
0 answers

The package 'analytics-react-native' can't access a custom native module while testing in react native

analytics-react-native giving me this warning when I run test on it. console.warn The package 'sovran-react-native' doesn't seem to be linked. Make sure: - You have run 'pod install' - You rebuilt the app after…
2
votes
1 answer

No such module 'Segment'

I know, I know, another question about Cocoapods that's BASICALLY the same...except not I've been trying to follow Segment's quickstart guide in order to get their pod integrated with my project but have completely run up against a brick wall. I am…
Nick Coelius
  • 4,668
  • 3
  • 24
  • 30
2
votes
2 answers

Setting Segment ajs_anonymous_id from SSR on client if user doesn't have cookie with Next.js App?

Anyone set the ajs_anonymous_id in SSR (Next.js) if it doesn't currently exist on client? I have a need to "read" the ajs_anonymous_id (Segment analytics) cookie during a SSR rendering in Next.Js, but of course there are instances when that cookie…
james emanon
  • 11,185
  • 11
  • 56
  • 97
2
votes
0 answers

Segment trackEvent doesn't work right after CodePush update installs

Our React Native project has both Segment and CodePush integrated. Segment works fine, normally. But there's a scenario where Segment stops working right after a CodePush update has been installed. Nothing gets flushed out and none of the events are…
2
votes
1 answer

Google AMP Story Analytics, using Segment

I am trying to use Segment to track analytics on Google AMP Stories. I want to track what page of the story a viewer taps to, and other ways they interact with the story. I am using Segment's AMP Mobile Source and followed the Documentation. I…
omihomii
  • 31
  • 1
  • 4
1
vote
0 answers

How to TypeScript type the addDestinationMiddleware function in Segment Analytics?

Looking at these Segment analytics docs, how do I add TypeScript type annotations to the addDestinationMiddleware function? At least how do I get TypeScript not to complain, I can type everything as any, but is there a better approach? I don't see…
Alien
  • 944
  • 2
  • 8
  • 22
1
vote
1 answer

How to authenticate in AWS SDK from segment?

I'm trying to call some AWS services from my segment function. To do that, I need to set the credentials for AWS, but I cannot find the way. As you can see in the segment documentation, AWS is available. The problems are: I cannot use credential…
1
vote
2 answers

Is there a simple way to mock segment's AnalyticsJS analytics.track() in jest with TypeScript?

In our React/TypeScript app we are tracking analytics with segment.com we use jest for our unit tests. The segment.com snippet in our index.html adds an analytics object that we can use anywhere in our code and the types are provided. In one of our…
Naylor
  • 752
  • 7
  • 20
1
vote
1 answer

Adding Segment telemtry to React component that is only one DOM node

I'm looking to add segment analytics to my JupyterLab extension. No worries if you've never heard of a JupyterLab extension - the best way to think about it: I get control over a single node in the DOM where I can place some HTML, so I'm doing the…
Nate Rush
  • 360
  • 2
  • 14
1
vote
1 answer

Does segment.io servers really route events to multiple destinations or the mobile sdk do?

I am facing difficulty to understand how segment.io works. Segment has explained that all data is sent to them (segment servers) and then it will be routed to destinations. From https://segment.com/docs/guides/general/what-is-segment/ You just send…
dnsh
  • 3,516
  • 2
  • 22
  • 47
1
2