0

I'm trying to setup snowplow tracker. I'm facing the following issues

1.The healthcheck test is not working(In scala stream collector -running step)

error- connection refused, 404 error

2.Setting up tracker Below is the code given in GitHub for snowplow setup In that what is collector URI, there are example for scala stream collector, examples are given only for cloudfront.

<!-- Snowplow starts plowing -->
<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","//d1fc8wv8zag5ca.cloudfront.net/2.5.1/sp.js","snowplow"));

window.snowplow('newTracker', 'cf', '{{MY-COLLECTOR-URI}}', { // Initialise a tracker
  appId: '{{MY-SITE-ID}}',
  cookieDomain: '{{MY-COOKIE-DOMAIN}}'
});

window.snowplow('trackPageView');
</script>`enter code here`
<!-- Snowplow stops plowing -->
imran ali
  • 383
  • 1
  • 13
kuzhal
  • 1

1 Answers1

0

Here's the snowplow tracker initialization docs. They explain all the parameters:

snowplow("newTracker", "(any name you want)", "(your collector uri)", {
  appId: "cfe23a",
  platform: "mob"
  cookieDomain: null,
  cookieName: "_sp534_",
  encodeBase64: false,
  respectDoNotTrack: false,
  userFingerprint: true,
  userFingerprintSeed: 6385926734,
  pageUnloadTimer: 0,
  writeCookies: true
});

If you need help setting up a Scala Stream Collector, you can read here.

If you need help setting up a Cloudfront collector, you can read here.

Tom Faltesek
  • 2,768
  • 1
  • 19
  • 30