Skip to content

Commit

Permalink
add: ga
Browse files Browse the repository at this point in the history
  • Loading branch information
isy committed Dec 11, 2018
1 parent 27f1145 commit 5e7df70
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.org/isy/portan.svg?branch=master)](https://travis-ci.org/isy/portan)

<div align="center">
<img alt="portan" src=".github/images/logo.svg" width="800px">
</div>
Expand Down
21 changes: 20 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@
content="portan is a free and open source desktop application."
/>
<meta property="og:type" content="website" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-114504071-2"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());

gtag('config', 'UA-114504071-2');
</script>
</head>
<body>
<div id="app">
Expand Down Expand Up @@ -82,7 +96,12 @@ <h4>Download Portan<span>v0.0.1</span></h4>
<div class="devise-logo">
<img src="assets/images/apple.svg" width="50px" />
</div>
<a class="download-button"> OS X </a>
<a
class="download-button"
onclick="ga('send', 'event', 'application', 'download', 'osx');"
>
OS X
</a>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.search-form
font-awesome-icon.search-icon.ok(v-if="validUrl(url)" @click="handleClickCreateWindow(url)" icon="flushed")
font-awesome-icon.search-icon(v-else icon="laugh")
input.text-input(type="text" v-model.trim="url" placeholder="e.g. 'https://portan.com'")
input.text-input(type="text" v-model.trim="url" placeholder="e.g. 'https://isy.github.io/portan'")
.history-view
h2.title-history history
app-history(:histories="histories" @createWindowHandler="handleClickCreateWindow")
Expand Down

0 comments on commit 5e7df70

Please sign in to comment.