add gtag
This commit is contained in:
parent
7bcd69b40e
commit
3d012f893e
|
@ -15,6 +15,14 @@
|
|||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||||
-->
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=%REACT_APP_TRACKING_CODE%"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', '%REACT_APP_TRACKING_CODE%');
|
||||
</script>
|
||||
<!--
|
||||
Notice the use of %PUBLIC_URL% in the tags above.
|
||||
It will be replaced with the URL of the `public` folder during the build.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export const DEFAULT_LANGUAGE = process.env.REACT_APP_DEFAULT_LANGUAGE ?? 'pl';
|
||||
export const DEFAULT_LANGUAGE = process.env.REACT_APP_DEFAULT_LANGUAGE ?? 'en';
|
||||
|
||||
export const NAME = 'TWHelp';
|
||||
|
||||
|
@ -17,6 +17,8 @@ export const MAP_SERVICE =
|
|||
|
||||
export const AUTHOR = 'Dawid Wysokiński';
|
||||
|
||||
export const TRACKING_CODE = process.env.REACT_APP_TRACKING_CODE ?? '';
|
||||
|
||||
export const DATE_FORMAT = {
|
||||
MONTH_AND_YEAR: 'yyyy-MM',
|
||||
DAY_MONTH_AND_YEAR: 'yyyy-MM-dd',
|
||||
|
|
Reference in New Issue
Block a user