Add dotenv file loading

This commit is contained in:
Kamran Ahmed
2019-11-16 15:21:40 +04:00
parent 4f81d5374e
commit 927ee73be7
6 changed files with 28 additions and 14 deletions

View File

@@ -1,5 +1,3 @@
export const GA_TRACKING_ID = 'UA-139582634-1';
// https://developers.google.com/analytics/devguides/collection/gtagjs/pages
export const firePageView = url => {
if (!window.gtag) {
@@ -7,7 +5,7 @@ export const firePageView = url => {
return;
}
window.gtag('config', GA_TRACKING_ID, {
window.gtag('config', process.env.GA_SECRET, {
page_path: url,
})
};