Events not hitting collector

<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 .

Hi @Abhi_31 ,

The collector endpoint you’re using doesn’t resolve:

curl http://sp-collector-lb-270523954.us-east-1.elb.amazonaws.com/health

> curl: (6) Could not resolve host: sp-collector-lb-270523954.us-east-1.elb.amazonaws.com

So I would say that either the endpoint is wrong, the collector is down, or you’ve got some networking issue. The endpoint needs to be available to all traffic.

Hope this helps, any questions let us know.

Thanks for ur suggestion ,i will check with elb configuration