mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-23 16:04:27 +08:00
feat: update analytics endpoints (#3674)
Co-authored-by: Palash Gupta <palashgdev@gmail.com>
This commit is contained in:
parent
0ad5d67140
commit
a306fb64cb
@ -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();
|
||||
}
|
||||
})();
|
||||
|
Loading…
x
Reference in New Issue
Block a user