Commit fa1d0d89 authored by Cole Bemis's avatar Cole Bemis

Add google analytics events

parent fbd59fb9
...@@ -5,8 +5,20 @@ ...@@ -5,8 +5,20 @@
<p class="description">Simply beautiful open source icons</p> <p class="description">Simply beautiful open source icons</p>
</div> </div>
<div class="header-button-group"> <div class="header-button-group">
<a class="button button-primary" href="feather-{{ site.data.package.version }}.zip" download>Download</a> <a
<a class="button button-secondary" href="https://twitter.com/intent/tweet?text=Feather%20-%20Simply%20beautiful%20open%20source%20icons%20by%20%40colebemis%20colebemis.github.io/feather" target="_blank">Tweet</a> class="button button-primary"
href="feather-{{ site.data.package.version }}.zip"
download
onclick="ga('send', 'event', 'download', 'click', 'all');">
Download
</a>
<a
class="button button-secondary"
href="https://twitter.com/intent/tweet?text=Feather%20-%20Simply%20beautiful%20open%20source%20icons%20by%20%40colebemis%20colebemis.github.io/feather"
target="_blank"
onclick="ga('send', 'event', 'share', 'click', 'twitter');">
Tweet
</a>
</div> </div>
</div> </div>
</header> </header>
...@@ -7,7 +7,14 @@ ...@@ -7,7 +7,14 @@
<div class="tooltip"> <div class="tooltip">
<p class="tooltip-icon-name">{{ icon }}</p> <p class="tooltip-icon-name">{{ icon }}</p>
<!-- TODO: remove tabindex="-1" --> <!-- TODO: remove tabindex="-1" -->
<a class="tooltip-download" href="{{ icon_path }}" download tabindex="-1">Download</a> <a
class="tooltip-download"
href="{{ icon_path }}"
download
tabindex="-1"
onclick="ga('send', 'event', 'download', 'click', '{{ icon }}');">
Download
</a>
</div> </div>
</div> </div>
{% endfor %} {% endfor %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment