Skip to main content

How to map UTM parameters?

utm_campaign → $campaign

utm_source → $mediaSource

utm_medium → ???

utm_term → $keyword

 

You can create a custom attribute for any additional fields you need. Check out the docs here.


RevenueCat has these attributes related to campaign data:

  • $mediaSource
  • $campaign
  • $adGroup
  • $ad
  • $keyword
  • $creative

We have these UTM parameters:

  • utm_source
  • utm_medium
  • utm_campaign
  • utm_term
  • utm_content

I know that we can call this function to setup the RevenueCat campaign data attributes:

  Purchases.setAttributes({
$mediaSource: "...",
$campaign: "...",
$adGroup: "...",
$ad: "...",
$keyword: "...",
$creative: "..."
});

I would like to know the correct mapping from UTM attributes to these RevenueCat campaign data attributes please. I could not find anything in the docs on this.