Merge branch 'release'

This commit is contained in:
Nikhil Nandagopal 2020-08-21 13:01:56 +05:30
commit 8aef6cfec3

View File

@ -16,27 +16,23 @@
transition: all ease-in 0.3s; transition: all ease-in 0.3s;
} }
</style> </style>
<% if("%REACT_APP_INTERCOM_APP_ID%"[0] !== "%" && "%REACT_APP_CLOUD_HOSTING%" !== "%") { %> <script type="text/javascript">
<script type="text/javascript"> // INTERCOM SETUP
// INTERCOM SETUP const APP_ID = "%REACT_APP_INTERCOM_APP_ID%"
const APP_ID = "%REACT_APP_INTERCOM_APP_ID%" const CLOUD_HOSTING = "%REACT_APP_CLOUD_HOSTING%"
const CLOUD_HOSTING = "%REACT_APP_CLOUD_HOSTING%" if (APP_ID.length && CLOUD_HOSTING.length) {
if (APP_ID.length && CLOUD_HOSTING.length) { (function () { var w = window; var ic = w.Intercom; if (typeof ic === "function") { ic('reattach_activator'); ic('update', w.intercomSettings); } else { var d = document; var i = function () { i.c(arguments); }; i.q = []; i.c = function (args) { i.q.push(args); }; w.Intercom = i; var l = function () { var s = d.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://widget.intercom.io/widget/' + APP_ID; var x = d.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); }; if (document.readyState === 'complete') { l(); } else if (w.attachEvent) { w.attachEvent('onload', l); } else { w.addEventListener('load', l, false); } } })();
(function () { var w = window; var ic = w.Intercom; if (typeof ic === "function") { ic('reattach_activator'); ic('update', w.intercomSettings); } else { var d = document; var i = function () { i.c(arguments); }; i.q = []; i.c = function (args) { i.q.push(args); }; w.Intercom = i; var l = function () { var s = d.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://widget.intercom.io/widget/' + APP_ID; var x = d.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); }; if (document.readyState === 'complete') { l(); } else if (w.attachEvent) { w.attachEvent('onload', l); } else { w.addEventListener('load', l, false); } } })(); }
} </script>
</script> <script async src="https://www.googletagmanager.com/gtag/js?id=%REACT_APP_GOOGLE_ANALYTICS_ID%"></script>
<% } %> <script>
<% if("%REACT_APP_GOOGLE_ANALYTICS_ID%"[0] !== "%") { %> // GA SETUP
<script async src="https://www.googletagmanager.com/gtag/js?id=%REACT_APP_GOOGLE_ANALYTICS_ID%"></script> window.dataLayer = window.dataLayer || [];
<script> function gtag() { dataLayer.push(arguments); }
// GA SETUP gtag('js', new Date());
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', "%REACT_APP_GOOGLE_ANALYTICS_ID%"); gtag('config', "%REACT_APP_GOOGLE_ANALYTICS_ID%");
</script> </script>
<% } %>
</head> </head>
<body> <body>