mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-03 09:58:30 +02:00
Update Segment for 1st party cookies (#1425)
* update segment for 1st party cookies * no need for segmentEndpoint var * revert change * update writeKey for staging Segment
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ HUGO_PARAMS_segmentWriteKey = "eQYi1nZE2zQSmnHuxjMRlDd2uLl65oHe"
|
||||
|
||||
[context.deploy-preview.environment]
|
||||
HUGO_ENV = "staging"
|
||||
HUGO_PARAMS_segmentWriteKey = "DZ49RYXkFEV0pY6DG4i0RyxyobSovIlU"
|
||||
HUGO_PARAMS_segmentWriteKey = "PVpuTLKGJveLivvc1r3ZyzFutWgtzkvQ"
|
||||
|
||||
[[headers]]
|
||||
for = "/*"
|
||||
|
||||
@@ -240,13 +240,14 @@ export function loadSegment() {
|
||||
t.type = "text/javascript";
|
||||
t.async = true;
|
||||
t.setAttribute("data-global-segment-analytics-key", i);
|
||||
t.src = "https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";
|
||||
t.src = "https://evs.analytics.qdrant.tech/5caWuitPgcGFN5Q7HMpTaj/vEkmzjuRSqeXGbhGAFTWex.min.js";
|
||||
var r = document.getElementsByTagName("script")[0];
|
||||
r.parentNode.insertBefore(t, r);
|
||||
analytics._loadOptions = n;
|
||||
};
|
||||
|
||||
analytics._writeKey = writeKey;
|
||||
analytics._cdn = "https://evs.analytics.qdrant.tech";
|
||||
analytics.SNIPPET_VERSION = "5.2.0";
|
||||
analytics.load(writeKey);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user