Snowplow Setup Guide
Prerequisites
- An website or an app with a Snowplow Tracker.
Setup Guide
Step 1: Initialize Snowplow Tracker
- 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> - Copy the following snippet into the
<head>section of your web page. - Replace
<WEBHOOK_URL>with the collector webhook url from Matia. - Set
<APP_ID>to a name representing your app, and<COOKIE_DOMAIN>to indicate where snowplow should store its data. - 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', '<WEBHOOK_URL>', {
appId: <APP_ID>,
cookieDomain: <COOKIE_DOMAIN>,
post: true
});
window.snowplow('trackPageView');
</script>
Step 2: Complete Configuration in Matia
- Enter an Asset Name.
- (Optional) Enter a Description.
- (Optional) Assign Tags.
- Select an Owner.
- Click Connect.