Jump to top

DynamicLinkAnalyticsParameters

interface

The DynamicLinkAnalyticsParameters interface provides functionality to add Google Analytic based parameters to a dynamic link.

Example
 const link = await firebase.dynamicLinks().buildLink({
   link: 'https://invertase.io',
   domainUriPrefix: 'https://xyz.page.link',
   analytics: {
     campaign: 'banner',
     content: 'Click Me',
   }
 });

Properties

campaign

</>

The individual campaign name, slogan, promo code, etc. for a product.

campaign: undefined | string;

content

</>

The campaign content; used for A/B testing and content-targeted ads to differentiate ads or links that point to the same URL.

content: undefined | string;

medium

</>

The campaign medium; used to identify a medium such as email or cost-per-click (cpc).

medium: undefined | string;

source

</>

The campaign source; used to identify a search engine, newsletter, or other source.

source: undefined | string;

term

</>

The campaign term; used with paid search to supply the keywords for ads.

term: undefined | string;