mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[Statsig] Send ref source (#3531)

* [Statsig] Send ref source

* Add is web check

* Fix types

authored by danabra.mov and committed by

GitHub 1390b1dc c3f75330

+11
+11
src/lib/statsig/statsig.tsx
··· 9 9 } from 'statsig-react-native-expo' 10 10 11 11 import {logger} from '#/logger' 12 + import {isWeb} from '#/platform/detection' 12 13 import {IS_TESTFLIGHT} from 'lib/app-info' 13 14 import {useSession} from '../../state/session' 14 15 import {LogEvents} from './events' 15 16 import {Gate} from './gates' 17 + 18 + let refSrc: string | undefined 19 + let refUrl: string | undefined 20 + if (isWeb && typeof window !== 'undefined') { 21 + const params = new URLSearchParams(window.location.search) 22 + refSrc = params.get('ref_src') ?? undefined 23 + refUrl = params.get('ref_url') ?? undefined 24 + } 16 25 17 26 export type {LogEvents} 18 27 ··· 97 106 userID, 98 107 platform: Platform.OS, 99 108 custom: { 109 + refSrc, 110 + refUrl, 100 111 // Need to specify here too for gating. 101 112 platform: Platform.OS, 102 113 },