Skip to content

[package:dash_analytics] Tests for conforming to GA4 Measurement Protocol limitations #9

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

Merged
merged 13 commits into from
Feb 17, 2023
Merged

[package:dash_analytics] Tests for conforming to GA4 Measurement Protocol limitations #9

merged 13 commits into from
Feb 17, 2023

Conversation

eliasyishak
Copy link
Contributor

@eliasyishak eliasyishak commented Feb 17, 2023

The tests have been updated here to check against the limitations within GA4. Not all of the limitations can be checked, I have listed all of the checks I can cover from GA4 Docs

✅ Events can have a maximum of 25 user properties.
✅ User property names must be 24 characters or fewer.
✅ User property values must be 36 characters or fewer. (ONLY FOR THE tool user property)
✅ Event names must be 40 characters or fewer, may only contain alpha-numeric characters and underscores, and must start with an alphabetic character.

- Events can have a maximum of 25 user properties
- User property names must be 24 characters or fewer
- User property values must be 36 characters or fewer (only for `tool` name)
- Event names must be 40 characters or fewer, may only contain alpha-numeric characters and underscores, and must start with an alphabetic character
[pkgs/dash_analytics] Adding event for analyzer startup (#7)
@christopherfujino
Copy link
Contributor

christopherfujino commented Feb 17, 2023

I get a 503 error from https://developers.google.com/analytics/devguides/collection/protocol/ga4/sending-events?client_type=gtag#limitations nvm, if I copy paste to browser it works. Just clicking from github doesn't work for some reason...

This is fine

@eliasyishak
Copy link
Contributor Author

@christopherfujino hmm that's strange. Attaching screenshot along with a copied and pasted list of the limitations

image

Limitations
- Requests can have a maximum of 25 events.
- Events can have a maximum of 25 parameters.
- Events can have a maximum of 25 user properties.
- User property names must be 24 characters or fewer.
- User property values must be 36 characters or fewer.
- Event names must be 40 characters or fewer, may only contain alpha-numeric characters and underscores, and must start with an alphabetic character.
- Parameter names (including item parameters) must be 40 characters or fewer, may only contain alpha-numeric characters and underscores, and must start with an alphabetic character.
- Parameter values (including item parameter values) must be 100 characters or fewer.
- Item parameters can have a maximum of 10 custom parameters.
- The post body must be smaller than 130kB.

@christopherfujino
Copy link
Contributor

christopherfujino commented Feb 17, 2023

I think if you remove the query params linking from github works: https://developers.google.com/analytics/devguides/collection/protocol/ga4/sending-events

NVM, doesn't work either

Copy link
Contributor

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

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

LGTM

@eliasyishak eliasyishak merged commit a53933c into dart-lang:main Feb 17, 2023
@eliasyishak eliasyishak deleted the conforming-ga-limitations branch February 17, 2023 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants