Skip to content

Commit

Permalink
fix event tracking on previews
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtmiller committed Jul 27, 2018
1 parent 46d94ac commit 4855288
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions _layouts/template-category.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 4855288

Please sign in to comment.