Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate clientId as it is required #188

Merged
merged 1 commit into from
Dec 28, 2018
Merged

Generate clientId as it is required #188

merged 1 commit into from
Dec 28, 2018

Conversation

xPaw
Copy link
Member

@xPaw xPaw commented Dec 28, 2018

I mistakenly assumed it was optional, and it does not work.

Ref: https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#cid

This field is required if User ID (uid) is not specified in the request.

I tested with this fix, and saw a hit in GA.

@xPaw xPaw added the bug label Dec 28, 2018
@@ -156,6 +156,31 @@ window.search_data_loaded = function (search_data) {
return;
}

function generateId() {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xPaw xPaw merged commit e966cef into master Dec 28, 2018
@xPaw xPaw deleted the xpaw/ga-cid branch December 28, 2018 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants