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

Allow a client to send a custom dimension #108

Closed
sethladd opened this issue Jun 16, 2017 · 5 comments
Closed

Allow a client to send a custom dimension #108

sethladd opened this issue Jun 16, 2017 · 5 comments

Comments

@sethladd
Copy link
Contributor

https://support.google.com/analytics/answer/2709828?hl=en

We'd like to send custom dimensions for screens and events. Is there a way to do this with usage?

Thanks!

@sethladd
Copy link
Contributor Author

sethladd commented Jun 16, 2017

Ah, maybe "sendRaw" will let us do it.

Hm, sendRaw isn't exposed via the public interface.

@123qws
Copy link

123qws commented Jun 16, 2017

You can use setSessionValue. But the value will be sent in with every hit unless you clear it. For example:

// Set value for custom dimension at index 1.
analytics.setSessionValue('cd1', 'Level 1');

@sethladd
Copy link
Contributor Author

Ah, thank you!

@devoncarew
Copy link
Member

@sethladd, is this for the channel name? That should already be sent in the flutter version.

@sethladd
Copy link
Contributor Author

The version has both the channel and git hash. We'd like a custom dimension for only the channel.

See flutter/flutter#10696

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants