Skip to content
Permalink
Browse files

Updated README.md about supported uid parameter that is used internal…

…ly for User ID
  • Loading branch information...
atkit committed Sep 20, 2018
1 parent e13640c commit a39f75f174ff388619490c827aca4a8bdedef38b
Showing with 7 additions and 0 deletions.
  1. +7 −0 README.md
@@ -67,6 +67,13 @@ If you want to use Google Analytics in http protocol, just include it in the opt
var visitor = ua('UA-XXXX-XX', {http: true});
```

If you want to set User Id you can add it into options:
```javascript
var visitor = ua('UA-XXXX-XX', {uid: 'as8eknlll'});
```
[see about User Id](https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#uid)


Tracking a pageview without much else is now very simple:

```javascript

0 comments on commit a39f75f

Please sign in to comment.
You can’t perform that action at this time.