Tracking Custom Events Snowplow Mini

I have been using Snowplow Mini for testing for the last couple of days.

I have been able to track standard events such as trackPageView, and a structured event. I uploaded a custom schema to Snowplow Mini, and have not been able to get it to actually track anything. I changed it to “public” based on seeing a previous post on here, as well as changing the tracking argument from trackUnstructEvent, to trackSelfDescribingEvent, as the argument is different in different areas of the documentation. I have confirmed that my schema is being hosted in the EC2 instance at the address I am pointing to by navigating to that page. Right now I am just using an example Schema provided in Documentation to prove that it works, but I want to get this working so I can move onto developing more useful custom schemas. Help is appreciated!

Below is my code, I edited out the instanceIP, but other than that, trackPageView and trackStructEvent are currently working.

<!-- Snowplow starts plowing -->
<script type="text/javascript">
snowplow('newTracker', 'cf', '//{{instanceIP}}', { // Initialise a tracker
  appId: 'TomSnowplowMini',
  cookieDomain: 'TomSnowplowMiniCookie'
var num=2;
function google(){
  snowplow('trackStructEvent', 'Link', 'Clicked', 'Google', '', '1');
function ad(){
  snowplow('trackSelfDescribingEvent', {
          'schema': 'api/schemas/com.acme/ad_click/jsonschema/1-0-0',
          'targetUrl': ''}

    <BODY onload="snowplow('trackPageView');">
        <h1>Snowplow Test</h1>
        <a href="" onClick="google();">Track Google</a>
        <a href="" onClick="ad();">Track Ad</a>


  "$schema" : "",
  "description" : "Schema for an Acme Inc ad click event",
  "self" : {
    "vendor" : "com.acme",
    "name" : "ad_click",
    "format" : "jsonschema",
    "version" : "1-0-0"
  "type" : "object",
  "properties" : {
    "clickId" : {
      "type" : "string"
    "targetUrl" : {
      "type" : "string",
      "minLength" : 1
  "required" : [ "targetUrl" ],
  "additionalProperties" : false,
  "metadata" : {
    "location" : "/api/schemas/com.acme/ad_click/jsonschema/1-0-0",
    "createdAt" : "03/12/2018 20:54:04",
    "updatedAt" : "03/13/2018 14:11:02",
    "permissions" : {
      "read" : "public",
      "write" : "none"

Hello @tjh34,

Schema in your tracking code should be iglu:com.acme/ad_click/jsonschema/1-0-0 not api/schemas/com.acme/ad_click/jsonschema/1-0-0.

Also, could you please point us to where documentation states something that leads you to think that arguments are different for these functions? They supposed to be absolutely identical. trackSelfDescribingEvent is just a proper way to describe it, trackUnstructEvent is deprecated.

Thanks @anton! That did it!

I think there are multiple places that mention trackUnstructEvent being the one I was following in my research. I just confirmed both arguments work. Nothing suggested that they are different, but I figured it was worth a try.