Skip to content

[Content]: Add ddetails about sending 'referrer' as a page property #3323

Open
@vanand17

Description

@vanand17

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    OutdatedcontentWhen the bug is about content that needs to get fixedtriaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions