Description
What article on segment.com/docs is affected?
https://segment.com/docs/connections/destinations/catalog/google-analytics/
What part(s) of the article would you like to see updated?
https://segment.com/docs/connections/destinations/catalog/google-analytics/#page-and-screen
Under this section of the doc, we could add a note saying when passing referrer as a page property, like so -
analytics.page('Form', 'Signup Modal', {
title: 'Signup Modal',
url: 'https://segment.com/#signup',
path: '/#signup',
referrer: 'https://segment.com/'
});
It will override the page referrer and set the @dr property.
Additional information
This update was raised by Mongo DB as they encountered a situation where while passing a referrer as a page property, it overrode their referrer and set the dr property.
"We were not aware that the GA integration was reading anything from the payload, and we added referrer as a page property; this broke our attribution and session in GA"
This is pretty clear from our integration code - https://github.com/segmentio/analytics.js-integrations/blob/master/integrations/google-analytics/lib/index.js#L251 but could be made added to our docs too