segment-integrations / analytics.js-integration-google-analytics

The Google Analytics analytics.js integration.
https://segment.com/docs/integrations/google-analytics/
MIT License
20 stars 23 forks source link

Add `id` as custom dimension #55

Closed brennan closed 7 years ago

brennan commented 7 years ago

If it exists, makes userId available as id for customers to map as a custom dimension out of the box. Ensures parity with our server-side integration.

brennan commented 7 years ago

@Han Revised PR, and simplified. We should only need to set id upon GA initialization or when a user calls identify.