Skip to main content

Snowplow Setup Guide

Prerequisites

  • An website or an app with a Snowplow Tracker.

Setup Guide

Step 1: Initialize Snowplow Tracker

  1. In Matia, find the asset-specific collector webhook url and make note of it.

    The webhook url will be in format of https://webhooks.matia.io/snowplow/<id>

  2. Copy the following snippet into the <head> section of your web page.
  3. Replace &lt;WEBHOOK_URL&gt; with the collector webhook url from Matia.
  4. Set &lt;APP_ID&gt; to a name representing your app, and &lt;COOKIE_DOMAIN&gt; to indicate where snowplow should store its data.
  5. Initialize the tracker in Snowplow
<script type='text/javascript'>
;(function(p,l,o,w,i,n,g){if(!p[i]){p.GlobalSnowplowNamespace=p.GlobalSnowplowNamespace||[];
p.GlobalSnowplowNamespace.push(i);p[i]=function(){(p[i].q=p[i].q||[]).push(arguments)
};p[i].q=p[i].q||[];n=l.createElement(o);g=l.getElementsByTagName(o)[0];n.async=1;
n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,'script','//cdn.jsdelivr.net/gh/snowplow/sp-js-assets@2.15.0/sp.js','snowplow'));
window.snowplow('newTracker', 'cf', '&lt;WEBHOOK_URL&gt;', {
appId: &lt;APP_ID&gt;,
cookieDomain: &lt;COOKIE_DOMAIN&gt;,
post: true
});
window.snowplow('trackPageView');
</script>

Step 2: Complete Configuration in Matia

  1. Enter an Asset Name.
  2. (Optional) Enter a Description.
  3. (Optional) Assign Tags.
  4. Select an Owner.
  5. Click Connect.