Documentation for latest release
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.