-
Notifications
You must be signed in to change notification settings - Fork 928
Add function setDefaultEventParameters() to set data that will be logged on every analytics SDK event #6367
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
Conversation
🦋 Changeset detectedLatest commit: b016fbc The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1Affected Products
Test Logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a few comments. Have @egilmorez review reference doc comment text (I tagged him in a comment at the exact spot).
packages/analytics/src/api.ts
Outdated
@@ -224,6 +225,23 @@ export function setAnalyticsCollectionEnabled( | |||
enabled | |||
).catch(e => logger.error(e)); | |||
} | |||
|
|||
/** | |||
* Adds data that will be set on every event logged from the SDK, including automatic one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@egilmorez Can you review the text here? This comment here should be the only text that will end up in the reference docs.
From me:
- one => ones
- In "gtag's set command" the "set" should be in quotes or backticks, I think quotes because it's a string not a var
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one suggestion, LG, thanks!
Add function to set data that will be set on every event logged from the SDK, including automatic one.