diff options
Diffstat (limited to 'app/assets/javascripts/tracking/constants.js')
-rw-r--r-- | app/assets/javascripts/tracking/constants.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/tracking/constants.js b/app/assets/javascripts/tracking/constants.js index 46278152879..bc416b20e80 100644 --- a/app/assets/javascripts/tracking/constants.js +++ b/app/assets/javascripts/tracking/constants.js @@ -1,5 +1,7 @@ export const SNOWPLOW_JS_SOURCE = 'gitlab-javascript'; +export const MAX_LOCAL_STORAGE_QUEUE_SIZE = 100; + export const DEFAULT_SNOWPLOW_OPTIONS = { namespace: 'gl', hostname: window.location.hostname, @@ -15,6 +17,7 @@ export const DEFAULT_SNOWPLOW_OPTIONS = { forms: { allow: [] }, fields: { allow: [] }, }, + maxLocalStorageQueueSize: MAX_LOCAL_STORAGE_QUEUE_SIZE, }; export const ACTION_ATTR_SELECTOR = '[data-track-action]'; |