Hello everyone,
I am using Scala Stream Collector, and it’s working fine.
When curl http://localhost:8081/health
response is OK.
Now when I track event with this code.
;(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","https://cdn.jsdelivr.net/gh/blabla/optimonoJsTracker@main/sp.js","snowplow"));
window.snowplow('newTracker', 'collector', 'localhost:8081', { // Initialise a tracker
appId: 'showcase'
});
</script>
<!-- Snowplow stops plowing -->
<!-- Example events -->
<script type="text/javascript">
function viewProperty() {
window.snowplow('trackStructEvent', 'viewProperty', 'CBL', '1234567890');
}
</script>
</head>
<body>
<h1>Event Tracker Example</h1>
<p>Press the button below to trigger individual tracking events:<br><br>
<button type="button" onclick="viewProperty()">Track Event</button><br>
</p>
</body>
It shows me this:
All help will appreciated, thanks
