Skip to content

Commit 34ec96e

Browse files
Kiara DaswaniKiara Daswani
authored andcommitted
Update GA docs to include info about new setting
1 parent 43c16e2 commit 34ec96e

File tree

1 file changed

+3
-1
lines changed
  • src/connections/destinations/catalog/google-analytics

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ ga(function (tracker) {
560560
});
561561
```
562562

563-
If you want our server-side destination to use your user's `clientId`, pass it to us in the `integrations['Google Analytics'].clientId` object. You must pass this value manually on every call as we do not store this value for you. If you do not pass this through, we look for the `userId` or `anonymousId` value and set the hashed value of either `userId` or `anonymousId` as the `cid`.
563+
If you want our server-side destination to use your user's `clientId`, pass it to us in the `integrations['Google Analytics'].clientId` object. You must pass this value manually on every call as we do not store this value for you.
564564

565565
*Here's a Ruby example:*
566566
```ruby
@@ -578,6 +578,8 @@ Analytics.track(
578578
)
579579
```
580580

581+
If you do not pass `integrations['Google Analytics'].clientId`, we look for the `userId` or `anonymousId` value and set the hashed value of either `userId` or `anonymousId` as the `cid`. By default, we prioritize `userId` over `anonymousId` which may have implications for reports that tie anonymous-to-known user behavior. In those cases, you can choose to prioritize `anonymousId` by enabling the **Prefer Anonymous ID for Client ID - Server Side Only** setting.
582+
581583

582584
### User Agent
583585

0 commit comments

Comments
 (0)