Add feature to use uid only without cid #122
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, I have recently come across GA lately and found your lib really useful.
I mostly use it to send some analytics data from the backend. My project analyzes mainly with UserId since we focus on user conversion etc.
Yesterday, I began to create custom dimensions for the user scope. I have an API fire the event when a user updates his status. I found the value in the custom dimensions are wrong when the user rapidly submits the update, even if it updates a different index of the custom dimensions.
My Custom dimensions are
cd1
cd2
cd3
In the analytic dashboard, the UserExplorer shows this userID with 2 events,
Create Profile
andUpdate Profile
. But these events appear to be in different sessions.The custom dimensions are showing
I figure the
cid
is the problem for my case, I tried the same event firing directly to the Measurement Protocol API without thecid
and the data works fine. In this case, it shows:According to the Measurement Protocol Reference, the
cid
anduid
can be either one.So I create an option
identifyByUserId
which check if theuid
is supplied then the auto-generatecid
will not be run.