mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
* add google analytics to sandbox instances * Add serverType variable to frontend handler * update version of html-webpack-plugin Co-authored-by: Lucas Rodriguez <lucas@fleetdm.com>
58 lines
1.6 KiB
Text
58 lines
1.6 KiB
Text
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!-- isProduction comes from build time webpack config -->
|
|
<% if (isProduction) { %>
|
|
<!-- ServerType comes from runtime server -->
|
|
{{ if (eq .ServerType "sandbox") }}
|
|
<!-- these scripts are to add google analytics on production sandbox instances -->
|
|
<script
|
|
async
|
|
type="text/javascript"
|
|
src="https://www.googletagmanager.com/gtag/js?id=G-JC3DRNY1GV"
|
|
></script>
|
|
<script type="text/javascript">
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag() {
|
|
dataLayer.push(arguments);
|
|
}
|
|
gtag("js", new Date());
|
|
gtag("config", "G-JC3DRNY1GV");
|
|
</script>
|
|
{{
|
|
end
|
|
}}
|
|
<% } %>
|
|
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<meta name="robots" content="noindex" />
|
|
|
|
<link
|
|
rel="stylesheet"
|
|
type="text/css"
|
|
href="{{.URLPrefix}}<%= htmlWebpackPlugin.files.css[0] %>"
|
|
/>
|
|
<link rel="shortcut icon" href="{{.URLPrefix}}/assets/favicon.ico" />
|
|
|
|
<title>Fleet for osquery</title>
|
|
<script type="text/javascript">
|
|
var urlPrefix = "{{.URLPrefix}}";
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<script
|
|
async
|
|
defer
|
|
src="{{.URLPrefix}}<%= htmlWebpackPlugin.files.js[0] %>"
|
|
onload="this.parentElement.removeChild(this)"
|
|
></script>
|
|
<!-- Because iOS hates interactive stuff, we have to kill it with fire -->
|
|
<script>
|
|
document.addEventListener("touchstart", function () {}, false);
|
|
</script>
|
|
<!-- End Apple Hate -->
|
|
</body>
|
|
</html>
|