debian-mirror-gitlab/app/assets/javascripts/tracking/constants.js
2023-06-20 00:43:36 +05:30

26 lines
763 B
JavaScript

export const SNOWPLOW_JS_SOURCE = 'gitlab-javascript';
export const DEFAULT_SNOWPLOW_OPTIONS = {
namespace: 'gl',
hostname: window.location.hostname,
cookieDomain: window.location.hostname,
appId: '',
respectDoNotTrack: true,
eventMethod: 'post',
contexts: { webPage: true, performanceTiming: true },
formTracking: false,
linkClickTracking: false,
formTrackingConfig: {
forms: { allow: [] },
fields: { allow: [] },
},
};
export const ACTION_ATTR_SELECTOR = '[data-track-action]';
export const LOAD_ACTION_ATTR_SELECTOR = '[data-track-action="render"]';
export const URLS_CACHE_STORAGE_KEY = 'gl-snowplow-pseudonymized-urls';
export const REFERRER_TTL = 24 * 60 * 60 * 1000;
export const GOOGLE_ANALYTICS_ID_COOKIE_NAME = '_ga';