Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/_includes/feature_lists/features-table-base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
{% endif %}
{% endfor %}
{% if row.docsLink %}
<p><a href="{{ row.docsLink }}" target="_blank" rel="noopener">Learn more</a></p>
<p><a href="{{ row.docsLink }}" target="_blank" rel="noopener" onclick="if(typeof capture==='function')capture('pricing-feature-docs-clicked',{feature:'{{ row.id }}',hosting:'{{ hosting }}'})">Learn more</a></p>
{% endif %}
</div>
</div>
Expand Down
11 changes: 8 additions & 3 deletions src/pricing/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,12 @@ hubspot:

// Scroll to hash target after hosting toggle (for tier badge links)
if (window.location.hash) {
var hashTarget = window.location.hash;
if (typeof capture === 'function' && hashTarget.startsWith('#ff-feature--')) {
capture('pricing-deep-link-arrived', { hash: hashTarget, hosting: hosting, referrer: document.referrer });
}
setTimeout(function() {
var el = document.querySelector(window.location.hash);
var el = document.querySelector(hashTarget);
if (el) el.scrollIntoView({ behavior: 'smooth', block: 'center' });
}, 100);
}
Expand All @@ -403,7 +407,7 @@ hubspot:
if (hosting === target) return;
hosting = target;
updateContentAndUrl(hosting);
capture(target);
if (typeof capture === 'function') capture('pricing-hosting-toggled', { hosting: target });
});
</script>

Expand Down Expand Up @@ -434,10 +438,11 @@ hubspot:
<!-- Features info -->
<script>
function openInfo(id, hosting) {
if (typeof capture === 'function') { capture('info-feature', { feature: id }, { hosting: hosting }) }
if (typeof capture === 'function') capture('pricing-feature-info-opened', { feature: id, hosting: hosting });
document.getElementById("ff-dialog--feature--" + id + "-" + hosting).classList.add('active')
}
function closeInfo(id, hosting) {
if (typeof capture === 'function') capture('pricing-feature-info-closed', { feature: id, hosting: hosting });
document.getElementById("ff-dialog--feature--" + id + "-" + hosting).classList.remove('active')
}
</script>
Loading