debian-mirror-gitlab/app/assets/javascripts/tracking/constants.js

30 lines
840 B
JavaScript
Raw Normal View History

2021-09-04 01:27:46 +05:30
export const SNOWPLOW_JS_SOURCE = 'gitlab-javascript';
2021-10-27 15:23:28 +05:30
export const DEFAULT_SNOWPLOW_OPTIONS = {
namespace: 'gl',
hostname: window.location.hostname,
cookieDomain: window.location.hostname,
appId: '',
userFingerprint: false,
respectDoNotTrack: true,
forceSecureTracker: true,
eventMethod: 'post',
contexts: { webPage: true, performanceTiming: true },
formTracking: false,
linkClickTracking: false,
pageUnloadTimer: 10,
formTrackingConfig: {
forms: { allow: [] },
fields: { allow: [] },
},
};
export const ACTION_ATTR_SELECTOR = '[data-track-action]';
export const LOAD_ACTION_ATTR_SELECTOR = '[data-track-action="render"]';
2021-11-11 11:23:49 +05:30
export const URLS_CACHE_STORAGE_KEY = 'gl-snowplow-pseudonymized-urls';
export const REFERRER_TTL = 24 * 60 * 60 * 1000;
2021-11-18 22:05:49 +05:30
export const GOOGLE_ANALYTICS_ID_COOKIE_NAME = '_ga';