Skip to content

Commit

Permalink
feat(SDK-2049): send referring link data to pageview
Browse files Browse the repository at this point in the history
feat(SDK-2049): send referring link data to pageview
  • Loading branch information
JagadeeshKaricherla-branch authored Aug 3, 2023
1 parent 1725b52 commit 3792568
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/2_resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
};

Expand Down
1 change: 1 addition & 0 deletions src/branch_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

0 comments on commit 3792568

Please sign in to comment.