Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rum-api-client): campaign performance measurement for meta campaigns #488

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ekremney
Copy link
Member

Summary

This PR introduces the campaign-performance query which is used to evaluate the performance of marketing campaigns by analyzing RUM data. The query first filters RUM bundles where the source of a paid checkpoint is identified as facebook (see explanation below). Then it groups the RUM bundles by the utm_campaign so that each campaign's performance can be calculated. Finally it calculates some business KPIs such as CTR and pageviews for each campaign.

Example Query Response:

[
  {
    "campaignId": "120213168952980692",
    "ctr": "0.0699",
    "lcp": 2342,
    "views": 118800
  },
  {
    "campaignId": "120211829416530209",
    "ctr": "0.0809",
    "lcp": 7079,
    "views": 30900
  },
  {
    "campaignId": "23855478306050731",
    "ctr": "0.2917",
    "lcp": 6129,
    "views": 26400
  }
]

Details

RUM Enhancer collects hints about the sources of acquired traffic. One of the primary indicators is utm parameters, where:

  • utm_source and utm_medium provide information about the traffic source.
  • utm_campaign identifies the specific marketing or advertising campaign responsible for driving the traffic.

In addition to utm parameters, other hints are collected as well such as email and paid checkpoints. A paid checkpoint is triggered when a specific hint in the URL tells the traffic source. For example, if the URL contains a fbclid query parameter, RUM Enhancer fires a paid checkpoint event with facebook as the source and fbclid as the target.

@ekremney ekremney changed the title feat(rum-api-client): campaign performance measurement feat(rum-api-client): campaign performance measurement for meta campaigns Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant