Clarify intent
This commit is contained in:
@@ -16,7 +16,7 @@ import {
|
|||||||
useSessionId,
|
useSessionId,
|
||||||
} from '#/analytics/identifiers'
|
} from '#/analytics/identifiers'
|
||||||
import {type Metrics, metrics} from '#/analytics/metrics'
|
import {type Metrics, metrics} from '#/analytics/metrics'
|
||||||
import * as referrer from '#/analytics/misc/referrer'
|
import * as refParams from '#/analytics/misc/refParams'
|
||||||
import {type MergeableMetadata, type Metadata} from '#/analytics/types'
|
import {type MergeableMetadata, type Metadata} from '#/analytics/types'
|
||||||
import * as env from '#/env'
|
import * as env from '#/env'
|
||||||
import {useGeolocation} from '#/geolocation'
|
import {useGeolocation} from '#/geolocation'
|
||||||
@@ -89,8 +89,8 @@ const Context = createContext<AnalyticsBaseContextType>({
|
|||||||
appVersion: env.APP_VERSION,
|
appVersion: env.APP_VERSION,
|
||||||
bundleIdentifier: env.BUNDLE_IDENTIFIER,
|
bundleIdentifier: env.BUNDLE_IDENTIFIER,
|
||||||
bundleDate: env.BUNDLE_DATE,
|
bundleDate: env.BUNDLE_DATE,
|
||||||
referrerSrc: referrer.src,
|
referrerSrc: refParams.src,
|
||||||
referrerUrl: referrer.url,
|
referrerUrl: refParams.url,
|
||||||
},
|
},
|
||||||
geolocation: device.get(['mergedGeolocation']) || {
|
geolocation: device.get(['mergedGeolocation']) || {
|
||||||
countryCode: '',
|
countryCode: '',
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
// TODO check Referrer.getReferrerInfo()
|
/**
|
||||||
|
* This is used for our own Bluesky post embeds, and maybe other things.
|
||||||
|
*
|
||||||
|
* In the case of our embeds, `ref_src=embed`. Not sure if `ref_url` is used.
|
||||||
|
*/
|
||||||
|
|
||||||
import * as env from '#/env'
|
import * as env from '#/env'
|
||||||
|
|
||||||
Reference in New Issue
Block a user