Find Locations


Find Locations { const footerLink = document.querySelector(‘.ac-gf-footer-locale-link’); const footerSection = document.querySelectorAll(‘.ac-gf-directory-column-section’); const footerShop = document.querySelector(‘.ac-gf-footer-shop’); const footerLegal = document.querySelector(‘.ac-gf-footer-legal’); if (footerLink) { footerLink.addEventListener(‘click’, (event) => { if (event.target.href) { delete _applemd.search; delete _applemd.product; _applemd.component = { name: ‘country selector’, type: ‘simple link’, link_text: event.target.innerText, dest_url: event.target.href, }; _satellite.track(‘loc.link’); } }); } if (footerSection) { footerSection.forEach((section) => { section.addEventListener(‘click’, (event) => { delete _applemd.search; delete _applemd.product; _applemd.component = { name: section.innerText.split(‘n’)[0], type: ‘simple link’, link_text: event.target.innerText, dest_url: event.target.href, }; _satellite.track(‘loc.link’); }); }); } if (footerLegal) { footerLegal.addEventListener(‘click’, (event) => { delete _applemd.search; delete _applemd.product; _applemd.component = { type: ‘simple link’, link_text: event.target.innerText, dest_url: event.target.href, }; _satellite.track(‘loc.link’); }); } if (footerShop) { footerShop.addEventListener(‘click’, (event) => { delete _applemd.search; delete _applemd.product; _applemd.component = { type: ‘simple link’, link_text: event.target.innerText, dest_url: event.target.href, }; _satellite.track(‘loc.link’); }); } });]]>
Source