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

docs: improve analytics types #76

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

huang-julien
Copy link
Contributor

hey 👋 here's some slights improvement for GA

We can remove the JS docs for the default value of consentValues. We can also remove consentValues from the optionalParams since undefined should be falsy by default

cc @felixarntz

@huang-julien huang-julien changed the title chore: improve analytics types and optional params refactor: improve analytics types and optional params Sep 14, 2024
@@ -19,8 +19,7 @@
"params": ["id"],
"optionalParams": {
"l": "dataLayer",
"consentType": "default",
"consentValues": null
Copy link
Collaborator

Choose a reason for hiding this comment

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

See #72 (comment) - while technically it doesn't matter, I think there is value in keeping parameters explicit in the schema, even if their default is null or undefined.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I understand now, let's add it back :)

@huang-julien huang-julien changed the title refactor: improve analytics types and optional params docs: improve analytics types Sep 14, 2024
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

Successfully merging this pull request may close these issues.

2 participants