text: export const GA_TRACKING_ID = "UA-163456077-1";
  
  export const trackPageview = url => {
    try {
      window.gtag("config", GA_TRACKING_ID, {
        page_location: url
      });
    } catch (err) {
      console.error("Failed sending metrics", err);
    }
  };
  
  export const trackEvent = ({ action, category, label, value }) => {
    try {
      window.gtag("event", action, {
        event_category: category,
        event_label: label,
        value
      });
    } catch (err) {
      console.error("Failed sending metrics", err);
    }
  };
  