Can't get snowplow mini to use custom trackers

I set-up Snowplow mini to test it out and I can’t get the collector to work with custom tracking. I copied the tracker it uses internally and switched in the endpoint as describe in This gives me the following code:

<script type="text/javascript">
  var collector =;
  window.snowplow('newTracker','rt','', {
    encodeBase64: false,
    appId: 'notsnowplowmini',
    platform: 'web',
    contexts: {
      webPage: true,
      performanceTiming: true
  window.snowplow('setUserId', 'NotSnowplowMini-User');
  window.snowplow('enableActivityTracking', 10, 10);
<!-- Snowplow stops plowing -->

And that doesn’t seem to work. Any ideas on what I’m doing wrong?

Hi @gmarlin,

The snippet you’ve shared doesn’t call any Track methods, which are what sends the event. The documentation for the javascript tracker has examples of doing so, I’d start with a Page View event.

If you add window.snowplow('trackPageView'); to the end of your script you should start to see events come through.

In terms of nomenclature things can get confusing - page views are classed as a standard event, since you can also set up a fully custom self-describing event. That requires creating a schema and pushing it to snowplow mini’s iglu-server (hosts schemas for Mini), which is a little more involved - there’s some software to aid in this process too.

Do let us know how you get on.


Wow what an oversight on my part. Thanks for the catch and for the reply. Made the change and it works. :slight_smile: