Skip to content

Commit 8901a9d

Browse files
authored
document measurement protocol parameters
1 parent d23828d commit 8901a9d

File tree

1 file changed

+16
-0
lines changed
  • src/connections/destinations/catalog/google-analytics

1 file changed

+16
-0
lines changed

src/connections/destinations/catalog/google-analytics/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,22 @@ If you want to send UTM parameters to Google Analytics using one of the Segment
621621

622622
Your UTM params need to be passed in the `context` object in `context.campaign`. For Google Analytics `campaign.name`, `campaign.source` and `campaign.medium` all need to be sent together for things to show up in reports. The other two params (`campaign.term` and `campaign.content`) are both optional, but will be forwarded to GA if you send them to Segment.
623623

624+
### Measurement Protocol Parameters
625+
626+
Google Analytics uses a reserved set of [Measurement Protocol Parameters](https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters) which are automatically collected by the device-mode Google Analytics tracker.
627+
628+
To include Measurement Protocol Parameters when sending server-side events to Google Analytics, you must:
629+
630+
1. Collect the value of the parameter as a Segment trait or property
631+
2. Configure the Segment Google Analytics destination to [map the trait or property](#map-traits-or-properties-to-measurement-protocol-params) to a specific Measurement Protocol Parameter key
632+
633+
The following Measurement Protocol Parameters are currently supported:
634+
635+
- plt
636+
- pdt
637+
- gclid
638+
- dt
639+
- cid
624640

625641
---
626642

0 commit comments

Comments
 (0)