Skip to content

Commit

Permalink
Add google analytics (#28)
Browse files Browse the repository at this point in the history
* Add google analytics

Signed-off-by: Prasad Ghangal <[email protected]>

* Fix sample output format

Signed-off-by: Prasad Ghangal <[email protected]>
  • Loading branch information
PrasadG193 authored Oct 16, 2019
1 parent f9333ca commit 8b97c62
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,19 @@
<!--Icon -->
<link rel="icon" type="image/gif/png"
href="https://raw.githubusercontent.com/PrasadG193/yaml2go/master/yaml2go.png" />

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-150234067-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-150234067-1');
</script>
</head>

<body>

<main role="main">
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron d-flex">
Expand Down
4 changes: 2 additions & 2 deletions frontend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ $(document).ready(function(){
' name: cluster\n' +
' namespace: test-ns\n')

go.setValue('// Yaml2Go'+
go.setValue('// Yaml2Go\n'+
'type Yaml2Go struct {\n' +
' Kind string `yaml:"kind"`\n' +
' Metadata Metadata `yaml:"metadata"`\n' +
Expand All @@ -83,4 +83,4 @@ $(document).ready(function(){
function displayError(err){
document.getElementById("err-span").innerHTML=err;
document.getElementById("error").style.display="block"
}
}

0 comments on commit 8b97c62

Please sign in to comment.