Skip to content

Commit 2bb4042

Browse files
authored
Merge pull request #546 from segmentio/google-analytics-typo-fix
Fixed code example in Google Analytics
2 parents 71d4483 + d5273ba commit 2bb4042

File tree

1 file changed

+4
-6
lines changed
  • src/connections/destinations/catalog/google-analytics

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ ga(function (tracker) {
571571
});
572572
```
573573

574-
If you want our server-side destination to use your user's `clientId`, pass it to us in the `context.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`.
574+
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`.
575575

576576
*Here's a Ruby example:*
577577
```ruby
@@ -581,11 +581,9 @@ Analytics.track(
581581
properties: {
582582
linkText : 'Next'
583583
},
584-
context: {
585-
integrations: {
586-
'Google Analytics' => {
587-
clientId: '1033501218.1368477899'
588-
}
584+
integrations: {
585+
'Google Analytics' => {
586+
clientId: '1033501218.1368477899'
589587
}
590588
}
591589
)

0 commit comments

Comments
 (0)