Skip to content

Replace hardcoded Snowplow Javascript tracker with the official library

Ankit Panchal requested to merge ankit.panchal/move-snowplow-npm into master

What does this MR do and why?

#339907 (closed)

In the follow up of #397689 (closed), currently we are storing sp.js file inside GitLab. This makes it difficult to upgrade and also it is at two places.

In this MR, we are moving the Snowplow library from the sp.js file to an npm package.

Additionally, we have included plugins that were previously bundled by default within the sp.js file.

How to set up and validate locally

  1. Check out this branch.
  2. Run yarn install.
  3. Compare the Snowplow event payload in the tp2 API call to ensure that the events are being tracked correctly.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports