mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-04 18:38:30 +02:00
add Segment click tracking for the documentation feedback buttons (#2085)
This commit is contained in:
@@ -110,7 +110,6 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
|
||||
document.querySelectorAll('.menu-mobile__item').forEach((item) => {
|
||||
item.addEventListener('click', () => {
|
||||
console.log(item.dataset.path);
|
||||
toggleMenu(item.dataset.path);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -49,10 +49,10 @@ const handleClickInteraction = (event) => {
|
||||
}
|
||||
};
|
||||
|
||||
// Gather all <a> elements that have been tagged
|
||||
// Gather all <a> and <button> elements that have been tagged
|
||||
// for tracking via 'data-metric-loc' attribute
|
||||
function tagAllAnchors() {
|
||||
const allMetricsAnchors= document.querySelectorAll('a[data-metric-loc]');
|
||||
const allMetricsAnchors= document.querySelectorAll('a[data-metric-loc], button[data-metric-loc]');
|
||||
|
||||
if (allMetricsAnchors) {
|
||||
allMetricsAnchors.forEach(anchor => {
|
||||
|
||||
Reference in New Issue
Block a user