Skip to content

Commit

Permalink
Put IDs on CTA buttons for tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
nkalupahana committed Feb 6, 2024
1 parent a9b3027 commit 06cca1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _includes/cta.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ <h4>{{ include.title | default:"Start journaling today" }}</h4>
baseline is a 100% free, non-profit operated, journaling and mood tracking service that's
designed to help people better understand their mental health by building a journaling habit.
</p>
<a href="/" class="baseline-button">Learn More</a>
<a id="blog_cta_clicked" href="/" class="baseline-button">Learn More</a>
</div>
6 changes: 3 additions & 3 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{%- assign default_paths = site.pages | map: "path" -%}
{%- assign page_paths = site.header_pages | default: default_paths -%}
{%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">
<a class="site-title" id="blog_menu_logo_clicked" rel="author" href="{{ "/" | relative_url }}">
<img src="/assets/wordmark.webp" alt="{{ site.title | escape }}" style="height: 55px;" />
</a>

Expand All @@ -21,8 +21,8 @@
</label>

<div class="trigger">
<a class="page-link" href="/">Home</a>
<a class="page-link get-baseline" href="/#top" onclick="document.getElementById('nav-trigger').checked = false;">Try baseline</a>
<a id="blog_menu_home_clicked" class="page-link" href="/">Home</a>
<a id="blog_menu_trybaseline_clicked" class="page-link get-baseline" href="/#top" onclick="document.getElementById('nav-trigger').checked = false;">Try baseline</a>
</div>
</nav>
{%- endif -%}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}
<img src="/assets/therapy-sidebar.jpg" alt="Person using phone to journal" class="sidebar-image" />
<h3 class="sidebar-heading">Better mental health, within your reach</h3>
<p>Journaling is proven to improve mental health &mdash; and baseline makes it easy. Start today, 100% free and private.</p>
<a href="/" class="baseline-button">Learn More</a>
<a id="blog_sidebar_clicked" href="/" class="baseline-button">Learn More</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 06cca1d

Please sign in to comment.