BranchMetrics / web-branch-deep-linking-attribution

The Branch Web SDK for deep linking and attribution. Once initialized, the Branch Web SDK allows you to create and share links with a banner (web only), over SMS, or your own methods by generating deep links. It also offers event tracking, access to referrals, and management of credits.
https://help.branch.io/developers-hub/docs/web-sdk-overview
MIT License
288 stars 101 forks source link

feat(SDK-2101): add setrequestmetadata public method #944

Closed JagadeeshKaricherla-branch closed 9 months ago

JagadeeshKaricherla-branch commented 12 months ago

Add setrequestmetadata public method

Pull Request Template

Description

exposes a new public method setRequestMetadata which sets specific key/value pairs to be sent to all API requests. This is required for integrating with partners like Adobe Analytics, Amplitude, etc. setRequestMetadata(String key, String value)

example usage : branch.setRequestMetaData("key1","value1");

live view on dashboard with the metadata

image

Fixes # (issue) : SDK-2101

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

JS Budget Check

Please mention the size in kb before abd after this PR

Files Before After
dist/build.js.
dist/build.min.js

Checklist:

Mentions:

List the person or team responsible for reviewing proposed changes.

cc @BranchMetrics/saas-sdk-devs for visibility.

github-actions[bot] commented 12 months ago

Test Results

118 tests   111 :heavy_check_mark:  49s :stopwatch:     1 suites      7 :zzz:     1 files        0 :x:

Results for commit 86a521f1.

:recycle: This comment has been updated with latest results.

codecov[bot] commented 12 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (master@d39e439). Click here to learn what that means.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #944 +/- ## ========================================= Coverage ? 26.49% ========================================= Files ? 15 Lines ? 2340 Branches ? 0 ========================================= Hits ? 620 Misses ? 1720 Partials ? 0 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.