Powered by AfterMKT 'use client'; import { useTagTracking } from '../lib/tracking'; export default function YourComponent() { // Initialize tag tracking with your showroom ID const { trackTagClick } = useTagTracking('your-showroom-id'); // Tag click handler const handleTagClick = (tagName: string) => { // Track the tag click trackTagClick(tagName); // Your existing tag click logic here // For example: // - Filtering products // - Updating UI // - etc. }; return (
{/* Your tag buttons */} {/* ... more tag buttons ... */}
); }