mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-02 01:18:30 +02:00
* gather utm params and add to outbound product links * segment needs testing across all environments, not just in production * campaign => content * adding two more ids * sessionStorage for gtm params and cleanup * move newParams conditional * move addUTMToLinks() to helpers file
17 lines
432 B
JavaScript
17 lines
432 B
JavaScript
import * as params from '@params';
|
|
import { setCookie } from './helpers';
|
|
import { setSegmentWriteKey } from './segment-helpers';
|
|
import { addUTMToLinks } from './helpers';
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
addUTMToLinks();
|
|
});
|
|
|
|
if (params.segmentWriteKey) {
|
|
setSegmentWriteKey(params.segmentWriteKey);
|
|
}
|
|
|
|
if (params.gaMeasurementId) {
|
|
setCookie('ga_measurement_id', params.gaMeasurementId, 365);
|
|
}
|