docs: better partner tracking

This commit is contained in:
Federico Zivolo 2017-09-23 18:15:01 +02:00
parent 39ae3d87bd
commit 869ab342fe
2 changed files with 6 additions and 5 deletions

View File

@ -23,6 +23,7 @@
$('.partner.creativetim').hide(); $('.partner.creativetim').hide();
} }
$('.partner.' + this.slice.name).show(); $('.partner.' + this.slice.name).show();
ga('send', 'event', 'Partner', this.slice.name);
}); });
// Indeterminate checkbox example // Indeterminate checkbox example

View File

@ -86,21 +86,21 @@ bower install bootstrap-material-design#v{{ site.current_version }}
<p class="partner mdbootstrap"> <p class="partner mdbootstrap">
2000+ material UI elements, 600+ material icons, 74 CSS animations, SASS files, templates, premium tutorials and many more 2000+ material UI elements, 600+ material icons, 74 CSS animations, SASS files, templates, premium tutorials and many more
</p> </p>
<a class="partner mdbootstrap" href="{{ site.mdbootstrap }}"> <a class="partner mdbootstrap" href="{{ site.mdbootstrap }}" onclick="ga('send', 'event', 'Homepage', 'Partner', 'Hero Image - mdbootstrap');">
<img class="img-fluid mt-3 mx-auto" src="{{ site.baseurl }}/assets/img/mdbootstrap.jpg" alt="Bootstrap Themes" width="1024" height="388"> <img class="img-fluid mt-3 mx-auto" src="{{ site.baseurl }}/assets/img/mdbootstrap.jpg" alt="Bootstrap Themes" width="1024" height="388">
</a> </a>
<br /><br /> <br /><br />
<a href="{{ site.mdbootstrap }}" class="btn btn-outline-primary partner mdbootstrap">Get Material Design for Bootstrap PRO</a> <a href="{{ site.mdbootstrap }}" class="btn btn-outline-primary partner mdbootstrap" onclick="ga('send', 'event', 'Homepage', 'Partner', 'Hero Button - mdbootstrap');">Get Material Design for Bootstrap PRO</a>
<h3 class="partner creativetim">Official Pro Kits</h3> <h3 class="partner creativetim">Official Pro Kits</h3>
<p class="partner creativetim"> <p class="partner creativetim">
Take Material Design for Bootstrap 4 to the next level with official Material Kit Pro and Material Dashboard Pro. Take Material Design for Bootstrap 4 to the next level with official Material Kit Pro and Material Dashboard Pro.
</p> </p>
<a class="partner creativetim" href="{{ site.mkp }}"> <a class="partner creativetim" href="{{ site.mkp }}" onclick="ga('send', 'event', 'Homepage', 'Partner', 'Hero Image - creativetim');">
<img class="img-fluid mt-3 mx-auto" src="{{ site.baseurl }}/assets/img/mk-pro-banner.jpg" alt="Bootstrap Themes" width="1024" height="388"> <img class="img-fluid mt-3 mx-auto" src="{{ site.baseurl }}/assets/img/mk-pro-banner.jpg" alt="Bootstrap Themes" width="1024" height="388">
</a> </a>
<br /><br /> <br /><br />
<a href="{{ site.mkp }}" class="btn btn-outline-primary partner creativetim">Material Kit Pro</a> <a href="{{ site.mkp }}" class="btn btn-outline-primary partner creativetim" onclick="ga('send', 'event', 'Homepage', 'Partner', 'Hero Button MKP - creativetim');">Material Kit Pro</a>
<a href="{{ site.mdp }}" class="btn btn-outline-primary partner creativetim">Material Dashboard Pro</a> <a href="{{ site.mdp }}" class="btn btn-outline-primary partner creativetim" onclick="ga('send', 'event', 'Homepage', 'Partner', 'Hero Button MDP - creativetim');">Material Dashboard Pro</a>
</div> </div>
</div> </div>