Skip to content

Commit

Permalink
fixed defining referrer_url place
Browse files Browse the repository at this point in the history
  • Loading branch information
gvidoou committed Oct 31, 2024
1 parent 898a613 commit 8fba04b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion template.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ function mapEvent(eventData, data) {
event_name: eventName,
action_source: data.actionSource || 'website',
event_time: Math.round(getTimestampMillis() / 1000),
referrer_url: eventData.page_referrer,
custom_data: {},
user_data: {}
};
Expand Down Expand Up @@ -644,6 +643,8 @@ function addAppData(eventData, mappedData) {
if (eventData.windows_attribution_id)
mappedData.app_data.windows_attribution_id =
eventData.windows_attribution_id;
if (eventData.referrer_url)
mappedData.referrer_url = eventData.page_referrer;

return mappedData;
}
Expand Down
3 changes: 2 additions & 1 deletion template.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,6 @@ function mapEvent(eventData, data) {
event_name: eventName,
action_source: data.actionSource || 'website',
event_time: Math.round(getTimestampMillis() / 1000),
referrer_url: eventData.page_referrer,
custom_data: {},
user_data: {}
};
Expand Down Expand Up @@ -1378,6 +1377,8 @@ function addAppData(eventData, mappedData) {
if (eventData.windows_attribution_id)
mappedData.app_data.windows_attribution_id =
eventData.windows_attribution_id;
if (eventData.referrer_url)
mappedData.referrer_url = eventData.page_referrer;

return mappedData;
}
Expand Down

0 comments on commit 8fba04b

Please sign in to comment.