Replace hardcoded Snowplow Javascript tracker with the official library
Problem
Our Snowplow setup consists of a vendor/assets/javascripts/snowplow/sp.js
file that has the minified Snowplow javascript tracker code. This file is present in two places currently. In general using such a file instead of an NPM package is unusual. It complicates updates to the library (see !115573 (merged)) and prevents any NPM based tooling (e.g. security scans) to work on the library.
Suggestion
Use NPM packages instead of sp.js
to include Snowplow and the plugins we want to use.
Edited by Sebastian Rehm