Skip to content

Commit

Permalink
adds additional analytics for profile nav (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed Apr 20, 2016
1 parent a1921c1 commit e9a1b8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions datausa/html/profile/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ <h2 class="section-title"><a name="intro">About</a></h2>
<div id="profile-toc">
{% for section in sections %}
<div class="profile-toc-section">
<h2><a href="#{{ section.anchor }}"><img src="/static/img/icons/{{ section.anchor }}.svg" /> {{ section.title|safe }}</a></h2>
<h2><a href="#{{ section.anchor }}" data-ga="toc {{ section.anchor }}" data-ga-cat="navigation" data-ga-label="User click"><img src="/static/img/icons/{{ section.anchor }}.svg" /> {{ section.title|safe }}</a></h2>
{% for desc in section.description %}
<p>{{ desc|safe }}</p>
{% endfor %}
Expand All @@ -150,11 +150,11 @@ <h2><a href="#{{ section.anchor }}"><img src="/static/img/icons/{{ section.ancho
{% if topic.category %}
{% if categories.update({"count": categories.count + 1}) %}{% endif %}
{% set anchor = topic.category|safe|lower|replace(" ", "_") %}
<li><a class="pri-link" href="#{{ anchor }}" data-anchor="{{ anchor }}" data-ga="toc topic" data-ga-cat="navigation" data-ga-label="User click">{{ topic.category|safe }}</a></li>
<li><a class="pri-link" href="#{{ anchor }}" data-anchor="{{ anchor }}" data-ga="toc {{ section.anchor }} topic" data-ga-cat="navigation" data-ga-label="User click">{{ topic.category|safe }}</a></li>
{% endif %}
{% endfor %}
{% if categories.count == 0 %}
<li><a class="pri-link" href="#{{ section.anchor }}" data-anchor="{{ section.anchor }}" data-ga="toc topic" data-ga-cat="navigation" data-ga-label="User click">Start Exploring</a></li>
<li><a class="pri-link" href="#{{ section.anchor }}" data-anchor="{{ section.anchor }}" data-ga="toc {{ section.anchor }} topic" data-ga-cat="navigation" data-ga-label="User click">Start Exploring</a></li>
{% endif %}
</ul>
</div>
Expand All @@ -180,7 +180,7 @@ <h2><a href="#{{ section.anchor }}"><img src="/static/img/icons/{{ section.ancho
<div id="profile-nav">
<ul class="pri-menu">
{% for section in sections %}
<a href="#{{ section.anchor }}"><li data-anchor="{{ section.anchor }}" class="pri-link"><img src="/static/img/icons/{{ section.anchor }}.svg" /><span class="profile-nav-text">{{ section.title|safe }}</span></li></a>
<a href="#{{ section.anchor }}" data-ga="subnav {{ section.anchor }}" data-ga-cat="navigation" data-ga-label="User click"><li data-anchor="{{ section.anchor }}" class="pri-link"><img src="/static/img/icons/{{ section.anchor }}.svg" /><span class="profile-nav-text">{{ section.title|safe }}</span></li></a>
{% endfor %}
</ul>
<a href="#top" id="back-to-top">
Expand Down

0 comments on commit e9a1b8f

Please sign in to comment.