{"version":3,"file":"TrackEvents.C98Kpasm.mjs","names":[],"sources":["https:/framerusercontent.com/modules/4kQvTkkjxOQmX7O9sD16/xeZAB1WNb11YVId9YP6C/TrackEvents.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// 1. Start for free\nexport function TrackStartForFree(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:e=>{if(props.onClick)props.onClick(e);if(typeof window!==\"undefined\"&&window.gtag){window.gtag(\"event\",\"click_start_for_free\",{event_category:\"button\",event_label:\"Start For Free\"});}}});};}// 2. Agendar Demo\nexport function TrackAgendaDemo(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:e=>{if(props.onClick)props.onClick(e);if(typeof window!==\"undefined\"&&window.gtag){window.gtag(\"event\",\"click_agenda_demo\",{event_category:\"button\",event_label:\"Agendar Demo\"});}}});};}// 3. Download Extension\nexport function TrackDownloadExtension(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:e=>{if(props.onClick)props.onClick(e);if(typeof window!==\"undefined\"&&window.gtag){window.gtag(\"event\",\"click_download_extension\",{event_category:\"button\",event_label:\"Download Extension\"});}}});};}// 4. GEO Ranking\nexport function TrackGeoRanking(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:e=>{if(props.onClick)props.onClick(e);if(typeof window!==\"undefined\"&&window.gtag){window.gtag(\"event\",\"click_geo_ranking\",{event_category:\"button\",event_label:\"GEO Ranking\"});}}});};}// 5. Readiness Score\nexport function TrackReadinessScore(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:e=>{if(props.onClick)props.onClick(e);if(typeof window!==\"undefined\"&&window.gtag){window.gtag(\"event\",\"click_readiness_score\",{event_category:\"button\",event_label:\"Readiness Score\"});}}});};}// 6. Subscribe to Newsletter\nexport function TrackSubscribeNewsletter(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:e=>{if(props.onClick)props.onClick(e);if(typeof window!==\"undefined\"&&window.gtag){window.gtag(\"event\",\"click_subscribe_newsletter\",{event_category:\"button\",event_label:\"Subscribe to Newsletter\"});}}});};}// 7. Descargar Guía\nexport function TrackDescargarGuia(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:e=>{if(props.onClick)props.onClick(e);if(typeof window!==\"undefined\"&&window.gtag){window.gtag(\"event\",\"click_descargar_guia\",{event_category:\"button\",event_label:\"Descargar Guia\"});}}});};}// 8. Override Inteligente para las Tarjetas (GEO Resources)\nexport function TrackSmartCardButton(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:e=>{// Mantiene el enlace original del botón\nif(props.onClick)props.onClick(e);// Lee el texto exacto que tiene el botón donde se hizo clic\nconst buttonText=e.currentTarget.textContent||\"\";let eventName=\"click_generico\";let eventLabel=buttonText;// Asigna el evento correcto según el texto del botón\nif(buttonText.includes(\"Download extension\")){eventName=\"click_download_extension\";eventLabel=\"Download Extension\";}else if(buttonText.includes(\"See GEO Ranking\")){eventName=\"click_geo_ranking\";eventLabel=\"GEO Ranking\";}else if(buttonText.includes(\"Check readiness score\")){eventName=\"click_readiness_score\";eventLabel=\"Readiness Score\";}// Envía el evento a GA4\nif(typeof window!==\"undefined\"&&window.gtag){window.gtag(\"event\",eventName,{event_category:\"button\",event_label:eventLabel});}}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"TrackReadinessScore\":{\"type\":\"reactHoc\",\"name\":\"TrackReadinessScore\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TrackDescargarGuia\":{\"type\":\"reactHoc\",\"name\":\"TrackDescargarGuia\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TrackStartForFree\":{\"type\":\"reactHoc\",\"name\":\"TrackStartForFree\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TrackGeoRanking\":{\"type\":\"reactHoc\",\"name\":\"TrackGeoRanking\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TrackDownloadExtension\":{\"type\":\"reactHoc\",\"name\":\"TrackDownloadExtension\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TrackAgendaDemo\":{\"type\":\"reactHoc\",\"name\":\"TrackAgendaDemo\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TrackSubscribeNewsletter\":{\"type\":\"reactHoc\",\"name\":\"TrackSubscribeNewsletter\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TrackSmartCardButton\":{\"type\":\"reactHoc\",\"name\":\"TrackSmartCardButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TrackEvents.map"],"mappings":"kHACA,SAAgB,EAAkB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,GAAG,CAAI,EAAM,SAAQ,EAAM,QAAQ,EAAE,CAAW,IAAS,QAAa,EAAO,MAAM,EAAO,KAAK,QAAQ,uBAAuB,CAAC,eAAe,SAAS,YAAY,iBAAiB,CAAC,EAAI,CAAC,CAC3S,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,GAAG,CAAI,EAAM,SAAQ,EAAM,QAAQ,EAAE,CAAW,IAAS,QAAa,EAAO,MAAM,EAAO,KAAK,QAAQ,oBAAoB,CAAC,eAAe,SAAS,YAAY,eAAe,CAAC,EAAI,CAAC,CAIpS,SAAgB,EAAyB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,GAAG,CAAI,EAAM,SAAQ,EAAM,QAAQ,EAAE,CAAW,IAAS,QAAa,EAAO,MAAM,EAAO,KAAK,QAAQ,6BAA6B,CAAC,eAAe,SAAS,YAAY,0BAA0B,CAAC,EAAI,CAAC,CACjU,SAAgB,EAAmB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,GAAG,CAAI,EAAM,SAAQ,EAAM,QAAQ,EAAE,CAAW,IAAS,QAAa,E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