function generateGAElements(props) {
    const { measurementId } = props;
    if (!measurementId)
        console.warn("Google Analytics Measurement ID is required");
    const src = `https://www.googletagmanager.com/gtag/js?id=${measurementId}`;
    const script = `
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());
    gtag('config', '${measurementId}');`;
    return {
        src,
        script,
    };
}
export { generateGAElements };
