Skip to content

Commit

Permalink
feat: update analytics endpoints (#3674)
Browse files Browse the repository at this point in the history
Co-authored-by: Palash Gupta <palashgdev@gmail.com>
  • Loading branch information
YounixM and palashgdev authored Oct 5, 2023
1 parent 0ad5d67 commit a306fb6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/src/index.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,20 @@
t.type = 'text/javascript';
t.async = !0;
t.src =
'https://cdn.segment.com/analytics.js/v1/' + key + '/analytics.min.js';
'https://analytics-cdn.signoz.io/analytics.js/v1/' +
key +
'/analytics.min.js';
var n = document.getElementsByTagName('script')[0];
n.parentNode.insertBefore(t, n);
analytics._loadOptions = i;
};
analytics._writeKey = SEGMENT_ID;
analytics.SNIPPET_VERSION = '4.16.1';
analytics.load(SEGMENT_ID);
analytics.load(SEGMENT_ID, {
integrations: {
'Segment.io': { apiHost: 'analytics-api.signoz.io/v1' },
},
});
analytics.page();
}
})();
Expand Down

0 comments on commit a306fb6

Please sign in to comment.