<script>
;(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://my-sp-js-bucket.s3.amazonaws.com/sp.js","snowplow"));
window.snowplow('newTracker', 'sp1', 'sp-collector-lb-270523954.us-east-1.elb.amazonaws.com', {
appId: 'my-app-id',
cookieDomain: '000webhost.com'
})
window.snowplow('trackPageView');
This is the code snippet i have included in my website . i have deployed snowplow pipeline using terraform .
The attached image contains error i am getting . there is something wrong about tp2 endpoint .