Skip to content

Commit 1cc25aa

Browse files
committed
update free trial button with GA event
1 parent 8748ef3 commit 1cc25aa

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

src/css/header.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,17 @@
133133
margin-left: var(--column-space);
134134
}
135135

136+
.free-trial-link {
137+
font-size: 16px;
138+
font-weight: 600;
139+
color: var(--color-brand-blue-secondary);
140+
text-decoration: none;
141+
}
142+
143+
.free-trial-link:hover {
144+
text-decoration: none;
145+
}
146+
136147
.parent-site {
137148
/* margin: 0 10px;
138149
padding: 0 10px; */

src/partials/header-content.hbs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,14 @@
7171
<div class="primary-action">
7272
{{#if env.ALGOLIA_API_KEY}}
7373
<form class="navbar-item search" id="search">
74-
<input class="query" type="text" placeholder="Search Docs"{{#if page.home}} autofocus{{/if}}><i class="fas fa-search"></i>
74+
<input class=dataLayer"query" type="text" placeholder="Search Docs"{{#if page.home}} autofocus{{/if}}><i class="fas fa-search"></i>
7575
</form>
7676
{{/if}}
77-
<a class="btn btn-primary try-btn" href="https://www.couchbase.com/downloads">
77+
<a href="#" class="free-trial-link" onclick="(window.dataLayer=window.dataLayer||[]).push({'event':'customEvent', 'category':'CTA', 'action':'Button Click', 'label':'Free Trial'});" >
78+
<i class="fas fa-cloud"></i>
79+
Free Trial
80+
</a>
81+
<a class="btn btn-primary try-btn" onclick="(window.dataLayer=window.dataLayer||[]).push({'event':'customEvent', 'category':'CTA', 'action':'Button Click', 'label':'Download'});" href="https://www.couchbase.com/downloads">
7882
Downloads
7983
</a>
8084
</div>

0 commit comments

Comments
 (0)