"use client";

import { usePathname } from "next/navigation";
import { useEffect } from "react";
import { enableGoogleAds } from "@/lib/google-ads";

/** Google Ads tag for visits from an ad click (ARB-274). The layout renders this on production only. */
export default function GoogleAdsTag() {
  const pathname = usePathname();
  useEffect(() => {
    enableGoogleAds();
  }, [pathname]);
  return null;
}
