From 3792568718fb0a47728cd8e18b39bf198167efda Mon Sep 17 00:00:00 2001 From: Jagadeesh Branch <102190347+JagadeeshKaricherla-branch@users.noreply.github.com> Date: Thu, 3 Aug 2023 14:14:58 -0700 Subject: [PATCH] feat(SDK-2049): send referring link data to pageview feat(SDK-2049): send referring link data to pageview --- src/2_resources.js | 3 ++- src/branch_view.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/2_resources.js b/src/2_resources.js index 5bd837cb..f2d0dd1a 100644 --- a/src/2_resources.js +++ b/src/2_resources.js @@ -293,7 +293,8 @@ resources.pageview = { "audience_rule_id": validator(false, validationTypes.STRING), "journey_dismissals": validator(false, validationTypes.OBJECT), "identity_id": validator(false, validationTypes.STRING), - "identity": validator(true, validationTypes.STRING) + "identity": validator(true, validationTypes.STRING), + "session_referring_link_data": validator(false, validationTypes.STRING) }) }; diff --git a/src/branch_view.js b/src/branch_view.js index 3d8a3986..36bedf71 100644 --- a/src/branch_view.js +++ b/src/branch_view.js @@ -251,6 +251,7 @@ branch_view._getPageviewRequestData = function(metadata, options, branch, isDism if (linkData && linkData['+referrer']) { obj.data['+referrer'] = linkData['+referrer']; } + obj['session_referring_link_data'] = sessionStorage['data'] || null; obj = utils.cleanLinkData(obj); return obj; };