Change path to load Segment

This commit is contained in:
Shrikant Sharat Kandula 2022-11-22 16:02:55 +05:30 committed by GitHub
parent 22550d638a
commit 4a43fcfdc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -339,8 +339,8 @@ class AnalyticsUtil {
const n = document.createElement("script");
n.type = "text/javascript";
n.async = !0;
n.src =
"https://a.appsmith.com/analytics.js/v1/" + t + "/analytics.min.js";
// Ref: https://www.notion.so/appsmith/530051a2083040b5bcec15a46121aea3
n.src = "https://a.appsmith.com/reroute/" + t + "/main.js";
const a: any = document.getElementsByTagName("script")[0];
a.parentNode.insertBefore(n, a);
analytics._loadOptions = e;