Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

31 řádky
1.3 KiB

  1. /*
  2. Copyright 2017 Google Inc. All Rights Reserved.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. import '../_version.mjs';
  14. export const QUEUE_NAME = 'workbox-google-analytics';
  15. export const MAX_RETENTION_TIME = 60 * 48; // Two days in minutes
  16. export const GOOGLE_ANALYTICS_HOST = 'www.google-analytics.com';
  17. export const GTM_HOST = 'www.googletagmanager.com';
  18. export const ANALYTICS_JS_PATH = '/analytics.js';
  19. export const GTAG_JS_PATH = '/gtag/js';
  20. export const COLLECT_DEFAULT_PATH = '/collect';
  21. // This RegExp matches all known Measurement Protocol single-hit collect
  22. // endpoints. Most of the time the default path (/collect) is used, but
  23. // occasionally an experimental endpoint is used when testing new features,
  24. // (e.g. /r/collect or /j/collect)
  25. export const COLLECT_PATHS_REGEX = /^\/(\w+\/)?collect/;