Skip to content

Commit

Permalink
added support for referrer_url
Browse files Browse the repository at this point in the history
  • Loading branch information
kHorozhanov committed May 20, 2024
1 parent d24a5e0 commit f0df06c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions template.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ function addServerEventData(eventData, mappedData) {
if (serverEventDataList.event_source_url) mappedData.event_source_url = serverEventDataList.event_source_url;
if (serverEventDataList.opt_out) mappedData.opt_out = serverEventDataList.opt_out;
if (serverEventDataList.event_id) mappedData.event_id = serverEventDataList.event_id;
if (serverEventDataList.referrer_url) mappedData.referrer_url = serverEventDataList.referrer_url;

if (serverEventDataList.data_processing_options) {
mappedData.data_processing_options = serverEventDataList.data_processing_options;
Expand Down
5 changes: 5 additions & 0 deletions template.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,10 @@ ___TEMPLATE_PARAMETERS___
{
"value": "data_processing_options_state",
"displayValue": "Data Processing Options State"
},
{
"value": "referrer_url",
"displayValue": "Referrer Url"
}
]
},
Expand Down Expand Up @@ -1252,6 +1256,7 @@ function addServerEventData(eventData, mappedData) {
if (serverEventDataList.event_source_url) mappedData.event_source_url = serverEventDataList.event_source_url;
if (serverEventDataList.opt_out) mappedData.opt_out = serverEventDataList.opt_out;
if (serverEventDataList.event_id) mappedData.event_id = serverEventDataList.event_id;
if (serverEventDataList.referrer_url) mappedData.referrer_url = serverEventDataList.referrer_url;
if (serverEventDataList.data_processing_options) {
mappedData.data_processing_options = serverEventDataList.data_processing_options;
Expand Down

0 comments on commit f0df06c

Please sign in to comment.