Welcome to mirror list, hosted at ThFree Co, Russian Federation.

analytics.js « entrypoints « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8eb265cb1e8fe12002c3da25c911bd775c168f89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { glClientSDK } from '@gitlab/application-sdk-browser';

const { analytics_id: appId, analytics_url: host } = window.gon;

if (appId && host) {
  window.glClient = glClientSDK({
    appId,
    host,
    hasCookieConsent: true,
    plugins: {
      clientHints: false,
      linkTracking: false,
      performanceTiming: false,
      errorTracking: false,
    },
  });
}