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
287 stars 101 forks source link

SDK-1541 : Include Raw Developer Identity in V1/PageView calls #814

Closed JagadeeshKaricherla-branch closed 2 years ago

JagadeeshKaricherla-branch commented 2 years ago

Description

When identity or raw developer id gets sent :

  1. Scenario 1 : setIdentity gets called, any v1/pageview calls after setIdentity should include identity param and same value is stored in session storage
  2. Scenario 2 : setIdentity gets called, any journeys shown( internally calls v1/pageview) should include identity param and same value is stored in session storage

When identity or raw developer id will not be sent :

  1. Scenario 1 : logout is called, any v1/pageview calls will not include identity param and same value is removed from session storage
  2. Scenario 2 : disabletracking(true) is called, any v1/pageview calls will not include identity param and same value is removed from session storage

Motivation and Context

https://branch.atlassian.net/browse/SDK-1519 Epic : SDK-1519: Include Raw Developer Identity in v1/Open, v1/install, v1/pageview (https://branch.atlassian.net/browse/SDK-1519)

Addresses # (requirement) : SDK-1541

Type of change

:white_check_mark: story

How Has This Been Tested?

:white_check_mark: Integration test

Build

Before After
dist/build.min.js 77kb 77kb

Checklist: