Saltar al contenido principal
Inicio - Estrategia y marketing digital
Publicado el 12 de diciembre de 2024
Publicado el 10 de enero de 2024
Publicado el 4 de diciembre de 2023
Publicado el 18 de septiembre de 2023
Publicado el 8 de junio de 2023
Publicado el 8 de mayo de 2023
Publicado el 11 de abril de 2023
Publicado el 28 de marzo de 2023
Publicado el 16 de marzo de 2023
Publicado el 21 de febrero de 2023
Maria Esther Community © Todos los derechos reservados.
(function(){
'use strict';
if(window.mecContactTrackingInstalled)return;
window.mecContactTrackingInstalled=true;
function allowed(){try{var m=document.cookie.match(/(?:^|;\s*)cc_cookie=([^;]*)/);return !!m&&JSON.parse(decodeURIComponent(m[1])).categories.indexOf('analytics')!==-1;}catch(e){return false;}}
function send(name,params){if(!allowed()||typeof window.gtag!=='function')return;params.send_to='G-62SXZNC202';window.gtag('event',name,params);}
document.addEventListener('click',function(e){var a=e.target.closest&&e.target.closest('a[href]');if(!a)return;var href=a.getAttribute('href')||'',name='',method='';if(/^tel:/i.test(href)){name='phone_click';method='phone';}else if(/^mailto:/i.test(href)){name='email_click';method='email';}else{try{var host=new URL(href,location.href).hostname;if(/^(wa\.me|api\.whatsapp\.com|web\.whatsapp\.com)$/.test(host)){name='whatsapp_click';method='whatsapp';}}catch(err){}}
if(name)send(name,{contact_method:method});},true);
function bind(){document.querySelectorAll('form.pom-form').forEach(function(form){if(form.dataset.mecGaBound)return;form.dataset.mecGaBound='1';var sent=false;var box=form.querySelector('[data-message-type="success"]');if(!box)return;function check(){if(!sent&&box.textContent.trim()&&box.getClientRects().length&&getComputedStyle(box).display!=='none'){sent=true;send('generate_lead',{contact_method:'form',form_id:form.getAttribute('data-form-id')||'contact'});}}
form.addEventListener('submit',function(){sent=false;},true);new MutationObserver(check).observe(box,{attributes:true,childList:true,subtree:true});});}
if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',bind);else bind();
})();