A universal module that gets native application information such as its ID, app name, and build version at runtime
Overall
score
98%
A React Native utility that tracks app installation attribution from marketing campaigns using Google Play Store install referrer data.
Build a utility module that retrieves and parses installation attribution data from the Google Play Store. The module should extract campaign information from the install referrer URL and make it accessible to the application for analytics purposes.
getInstallAttribution() that retrieves install referrer information from the Play Store @testnull @testutm_source from the referrer URL and includes it in the returned object @testutm_medium from the referrer URL and includes it in the returned object @testutm_campaign from the referrer URL and includes it in the returned object @testnull in the returned object @test@generates
/**
* Attribution data extracted from the install referrer
*/
export interface AttributionData {
utm_source: string | null;
utm_medium: string | null;
utm_campaign: string | null;
rawReferrer: string | null;
}
/**
* Retrieves and parses install attribution data from the Google Play Store.
* Returns attribution information including UTM parameters and the raw referrer string.
* On platforms other than Android or when referrer data is unavailable, returns null values.
*/
export async function getInstallAttribution(): Promise<AttributionData>;Provides access to native application information including install referrer data.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-expo-application