mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-24 04:04:25 +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.type = 'text/javascript';
|
||||||
t.async = !0;
|
t.async = !0;
|
||||||
t.src =
|
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];
|
var n = document.getElementsByTagName('script')[0];
|
||||||
n.parentNode.insertBefore(t, n);
|
n.parentNode.insertBefore(t, n);
|
||||||
analytics._loadOptions = i;
|
analytics._loadOptions = i;
|
||||||
};
|
};
|
||||||
analytics._writeKey = SEGMENT_ID;
|
analytics._writeKey = SEGMENT_ID;
|
||||||
analytics.SNIPPET_VERSION = '4.16.1';
|
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();
|
analytics.page();
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user