Permalink
Browse files

fix event tracking on previews

  • Loading branch information...
davidtmiller committed Jul 27, 2018
1 parent 46d94ac commit 4855288a2a814f74a5d5ed36bd26de742873f330
Showing with 6 additions and 6 deletions.
  1. +4 −4 _layouts/template-category.html
  2. +2 −2 index.html
@@ -88,15 +88,15 @@ <h2 class="mb-0">Premium Bootstrap Themes</h2>
{% if item.categories contains 'featured' %}
<div class="col-lg-4 col-md-6 sb-preview text-center">
<div class="card h-100">
<a class="sb-preview-img" href="{{ item.src }}" onclick="ga('send','event','Product','click',{{ item.title }}')">
<a class="sb-preview-img" href="{{ item.src }}" onclick="ga('send','event','Product','click','{{ item.title }}')">
<img class="card-img-top" src="{{ item.img-src }}" alt="{{ item.img-desc }}">
</a>
<div class="card-body">
<h4 class="card-title">{{ item.title }}</h4>
<p class="card-text">{{ item.bump }}</p>
</div>
<div class="card-footer">
<a href="{{ item.src }}" class="btn btn-secondary" onclick="ga('send','event','Product','click',{{ item.title }}')">Preview &amp; Download</a>
<a href="{{ item.src }}" class="btn btn-secondary" onclick="ga('send','event','Product','click','{{ item.title }}')">Preview &amp; Download</a>
</div>
</div>
</div>
@@ -130,15 +130,15 @@ <h4 class="card-title">{{ item.title }}</h4>
<div class="col-lg-4 col-md-6 sb-preview text-center">
<div class="card h-100">
<a class="sb-preview-img" href="{{ item.src }}" onclick="ga('send','event','Product','click',{{ item.title }}')">
<a class="sb-preview-img" href="{{ item.src }}" onclick="ga('send','event','Product','click','{{ item.title }}')">
<img class="card-img-top" src="{{ item.img-src }}" alt="{{ item.img-desc }}">
</a>
<div class="card-body">
<h4 class="card-title">{{ item.title }}</h4>
<p class="card-text">{{ item.bump }}</p>
</div>
<div class="card-footer">
<a href="{{ item.src }}" class="btn btn-secondary" onclick="ga('send','event','Product','click',{{ item.title }}')">Preview &amp; Purchase</a>
<a href="{{ item.src }}" class="btn btn-secondary" onclick="ga('send','event','Product','click','{{ item.title }}')">Preview &amp; Purchase</a>
</div>
</div>
</div>
View
@@ -74,15 +74,15 @@ <h2>Looking for something more?</h2>
{% if item.categories contains 'featured' %}
<div class="col-lg-4 col-md-6 sb-preview text-center">
<div class="card h-100">
<a class="sb-preview-img" href="{{ item.src }}" onclick="ga('send','event','Product','click',{{ item.title }}')">
<a class="sb-preview-img" href="{{ item.src }}" onclick="ga('send','event','Product','click','{{ item.title }}')">
<img class="card-img-top" src="{{ item.img-src }}" alt="{{ item.img-desc }}">
</a>
<div class="card-body">
<h4 class="card-title">{{ item.title }}</h4>
<p class="card-text">{{ item.bump }}</p>
</div>
<div class="card-footer">
<a href="{{ item.src }}" class="btn btn-secondary" onclick="ga('send','event','Product','click',{{ item.title }}')">Preview &amp; Download</a>
<a href="{{ item.src }}" class="btn btn-secondary" onclick="ga('send','event','Product','click','{{ item.title }}')">Preview &amp; Download</a>
</div>
</div>
</div>

0 comments on commit 4855288

Please sign in to comment.