Skip to content

Conversation

athiramanu
Copy link

@athiramanu athiramanu commented Sep 25, 2025

This change is part of the feature to support Web Experiments in Remote Config. The change is split into 3 PRs where:

  1. Introduces the experiment details in the fetch response type
  2. Extracts experiments received from the fetch response and saves in indexedDB
  3. Sets the experiment and variant received as user property

This is 3/3 mentioned above

Design doc (internal): go/experiments-web

Copy link

changeset-bot bot commented Sep 25, 2025

⚠️ No Changeset found

Latest commit: 76fd2ad

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@athiramanu athiramanu changed the title feat: Integrate experiments with firebase analytics internal Integrate experiments with firebase analytics internal Sep 25, 2025
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 25, 2025

Size Report 1

Affected Products

  • @firebase/remote-config

    TypeBase (17126e9)Merge (44aee84)Diff
    browser40.8 kB41.5 kB+710 B (+1.7%)
    main42.0 kB42.7 kB+710 B (+1.7%)
    module40.8 kB41.5 kB+710 B (+1.7%)
  • bundle

    TypeBase (17126e9)Merge (44aee84)Diff
    remote-config (getAndFetch)60.4 kB60.9 kB+517 B (+0.9%)
  • firebase

    TypeBase (17126e9)Merge (44aee84)Diff
    firebase-compat.js810 kB811 kB+488 B (+0.1%)
    firebase-remote-config-compat.js39.6 kB40.1 kB+487 B (+1.2%)
    firebase-remote-config.js44.5 kB45.0 kB+494 B (+1.1%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/vBSHpKNpHT.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 25, 2025

Size Analysis Report 1

Affected Products

  • @firebase/remote-config

    • activate

      Size

      TypeBase (17126e9)Merge (44aee84)Diff
      size24.5 kB25.0 kB+516 B (+2.1%)
      size-with-ext-deps51.0 kB51.5 kB+517 B (+1.0%)
    • ensureInitialized

      Size

      TypeBase (17126e9)Merge (44aee84)Diff
      size23.3 kB23.5 kB+167 B (+0.7%)
      size-with-ext-deps49.8 kB50.0 kB+167 B (+0.3%)
    • fetchAndActivate

      Size

      TypeBase (17126e9)Merge (44aee84)Diff
      size25.1 kB25.6 kB+516 B (+2.1%)
      size-with-ext-deps51.6 kB52.1 kB+517 B (+1.0%)
    • fetchConfig

      Size

      TypeBase (17126e9)Merge (44aee84)Diff
      size23.9 kB24.1 kB+167 B (+0.7%)
      size-with-ext-deps50.4 kB50.6 kB+167 B (+0.3%)
    • getAll

      Size

      TypeBase (17126e9)Merge (44aee84)Diff
      size24.5 kB24.7 kB+167 B (+0.7%)
      size-with-ext-deps51.0 kB51.1 kB+167 B (+0.3%)
    • getBoolean

      Size

      TypeBase (17126e9)Merge (44aee84)Diff
      size24.3 kB24.5 kB+167 B (+0.7%)
      size-with-ext-deps50.8 kB51.0 kB+167 B (+0.3%)
    • getNumber

      Size

      TypeBase (17126e9)Merge (44aee84)Diff
      size24.3 kB24.5 kB+167 B (+0.7%)
      size-with-ext-deps50.8 kB51.0 kB+167 B (+0.3%)
    • getRemoteConfig

      Size

      TypeBase (17126e9)Merge (44aee84)Diff
      size24.1 kB24.3 kB+167 B (+0.7%)
      size-with-ext-deps57.5 kB57.7 kB+167 B (+0.3%)
    • getString

      Size

      TypeBase (17126e9)Merge (44aee84)Diff
      size24.3 kB24.5 kB+167 B (+0.7%)
      size-with-ext-deps50.8 kB51.0 kB+167 B (+0.3%)
    • getValue

      Size

      TypeBase (17126e9)Merge (44aee84)Diff
      size24.3 kB24.5 kB+167 B (+0.7%)
      size-with-ext-deps50.8 kB51.0 kB+167 B (+0.3%)
    • isSupported

      Size

      TypeBase (17126e9)Merge (44aee84)Diff
      size23.4 kB23.6 kB+167 B (+0.7%)
      size-with-ext-deps49.9 kB50.1 kB+167 B (+0.3%)
    • onConfigUpdate

      Size

      TypeBase (17126e9)Merge (44aee84)Diff
      size23.4 kB23.6 kB+167 B (+0.7%)
      size-with-ext-deps49.9 kB50.1 kB+167 B (+0.3%)
    • setCustomSignals

      Size

      TypeBase (17126e9)Merge (44aee84)Diff
      size23.8 kB24.0 kB+167 B (+0.7%)
      size-with-ext-deps50.3 kB50.5 kB+167 B (+0.3%)
    • setLogLevel

      Size

      TypeBase (17126e9)Merge (44aee84)Diff
      size23.5 kB23.6 kB+167 B (+0.7%)
      size-with-ext-deps50.0 kB50.1 kB+167 B (+0.3%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/sukkNynJRn.html

@athiramanu athiramanu changed the base branch from web-exp-abt to web-experiment September 26, 2025 01:26
@athiramanu athiramanu marked this pull request as ready for review September 26, 2025 01:27
@athiramanu athiramanu requested review from a team and erikeldridge as code owners September 26, 2025 01:27
@athiramanu athiramanu requested a review from hsubox76 October 1, 2025 05:47
customProperty[experimentId] = null;
}
}
void this.addExperimentToAnalytics(customProperty);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this supposed to be remove?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, i missed this comment. The function was removed since it had the same flow as add but with null as value. Corresponding comment - #9278 (comment)

@athiramanu athiramanu requested a review from hsubox76 October 1, 2025 17:52
customProperty[experimentId] = null;
}
}
this.addExperimentToAnalytics(customProperty);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry if this is a duplicate comment - I can't see the previous one I left anymore - but this should be removeExperimentFromAnalytics, right?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was removed as per #9278 (comment)

@athiramanu athiramanu merged commit a19c1a7 into web-experiment Oct 2, 2025
34 checks passed
@athiramanu athiramanu deleted the web-exp-ga branch October 2, 2025 18:42
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.

5 participants