Skip to content

Commit 143761e

Browse files
author
markzegarelli
authored
Merge branch 'master' into DOC-162_rate-limits
2 parents 63419dc + f06b8e4 commit 143761e

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/_layouts/default.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
Production: https://app.segment.com/segment_prod/sources/segment_docs_v2_prod
8484
Everything else: https://app.segment.com/segment-engineering/sources/segment_docs
8585
{%- endcomment -%}
86-
{%- if jekyll.environment == "production" -%}
86+
{%- if site.env.CONTEXT == "production" -%}
8787
{%- assign write_key = "QAKKJEtNsXpsNfCCBeWCLNxkaaLO7pgp" -%}
8888
{%- else -%}
8989
{%- assign write_key = "f5c1iWVVwikUDoh5NuVq0G52EPFrMmrX" -%}
@@ -118,7 +118,6 @@
118118
{%- comment -%}
119119
Consent Manager
120120
{%- endcomment -%}
121-
122121
<script>
123122
window.consentManagerConfig = function (exports) {
124123
var React = exports.React

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,16 @@ 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
624625

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:
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+
Segment supports the `plt`, `pdt`, `gclid`, `dt`, and `cid` Measurement Protocol Parameters.
626634

627635

628636
## Features

0 commit comments

Comments
 (0)