From a306fb64cbf79f1a1f1a4d64d5a5df4580ef74b3 Mon Sep 17 00:00:00 2001 From: Yunus M Date: Thu, 5 Oct 2023 21:59:40 +0530 Subject: [PATCH] feat: update analytics endpoints (#3674) Co-authored-by: Palash Gupta --- frontend/src/index.html.ejs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/src/index.html.ejs b/frontend/src/index.html.ejs index abfd8258bb..227506006b 100644 --- a/frontend/src/index.html.ejs +++ b/frontend/src/index.html.ejs @@ -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(); } })();