Product analytics instrumentation SDK example code is invalid
What does this MR do and why?
Updates the product analytics example SDK instrumentation code to be valid JavaScript: glClientSDK({ 'value', 'value' })
becomes glClientSDK({ appId: 'value', host: 'value' })
Update applicationId
to appId
inline with the SDK. This only happens when product_analytics_snowplow_support
feature flag is enabled.
Also specify package version 0.0.5 when feature flag is disabled so the Jitsu-supported SDK is used.
Screenshots or screen recordings
before | after (FF enabled) | after (FF disabled) |
---|---|---|
How to set up and validate locally
Note: This feature has a lot of setup steps. If you need help please ask me or I can step through these during a call with you.
- Follow these instructions to setup Product Analytics in GDK.
- Create a new project.
- In the new project, view the Analytics > Dashboards
- Click on the Product Analytics
Set up
button. - When you are presented with the "Instrument your application" instructions, verify the code examples are valid JavaScript
Enable the product_analytics_snowplow_support
feature flag
- Refresh the page and verify that all
applicationId
keys have changed toappId
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #409027 (closed)