sp.jsis fully featured and is bundled with the majority of the available plugins.
sp.lite.jsis a smaller distribution with no bundled plugins. Included is Page View, Self Describing and Structured Event tracking as well as Activity Tracking and Anonymous Tracking. All other features can be loaded as separate plugins.
Use the following tag to your page to load
Code language: HTML, XML (xml)
We also recommend renaming
Important note regarding testing: If the URL to sp.js is protocol-relative i.e. beginning with // when fetching
sp.js. It will work if the your web page is using the “http” or “https” protocol. But if you are testing locally and loading your page from your filesystem using the “file” protocol (so its URI looks something like “file:///home/joe/snowplow_test.html”), the protocol-relative URL will also use that protocol, preventing the script from loading. To avoid this, change the URL to
"http://.../sp.js" when testing locally.
Once the tracker is loaded via the tag, you can move on to initializing the tracker.