(function(){ 'use strict'; if(window.psyGa4Installed)return; window.psyGa4Installed=true; window.dataLayer=window.dataLayer||[]; window.gtag=window.gtag||function(){window.dataLayer.push(arguments);}; gtag('consent','default',{analytics_storage:'granted',ad_storage:'denied',ad_user_data:'denied',ad_personalization:'denied'}); gtag('consent','update',{analytics_storage:'granted',ad_storage:'denied',ad_user_data:'denied',ad_personalization:'denied'}); gtag('js',new Date()); var clean=function(v){try{var u=new URL(v,location.href);return u.origin+u.pathname;}catch(e){return '';}}; var debug=new URLSearchParams(location.search).get('ga_debug')==='1'; gtag('config','G-Q456ZB5KSW',{send_page_view:true,page_location:clean(location.href),page_referrer:document.referrer?clean(document.referrer):'',allow_google_signals:false,allow_ad_personalization_signals:false,cookie_expires:34128000,debug_mode:debug}); var script=document.createElement('script');script.async=true;script.data-privacy-src='https://www.googletagmanager.com/gtag/js?id=G-Q456ZB5KSW';document.head.appendChild(script); function send(name,params){gtag('event',name,Object.assign({send_to:'G-Q456ZB5KSW',transport_type:'beacon'},params||{}));} document.addEventListener('click',function(e){ var a=e.target.closest&&e.target.closest('a[href]');if(!a)return; var href=a.getAttribute('href')||''; if(/^tel:/i.test(href))send('contact_click',{contact_method:'telephone'}); else if(/^mailto:/i.test(href))send('contact_click',{contact_method:'email'}); else {try{var u=new URL(href,location.href);if(u.origin===location.origin&&(u.pathname==='/rendez-vous-et-contact/'||u.pathname==='/rendez-vous-et-contact'))send('appointment_click',{contact_method:'contact_page'});}catch(err){}} },true); var started=false,confirmed=false; document.addEventListener('submit',function(e){if(e.target.id==='gform_1'){try{sessionStorage.setItem('psy_contact_pending',String(Date.now()));}catch(err){}}},true); document.addEventListener('focusin',function(e){if(!started&&e.target.closest&&e.target.closest('#gform_1')){started=true;send('form_start',{form_id:'contact_1'});}}); function confirmation(){var redirect=false;try{var at=Number(sessionStorage.getItem('psy_contact_pending'));redirect=(location.pathname==='/merci/'||location.pathname==='/merci')&&at>0&&Date.now()-at<600000;}catch(err){}if(!confirmed&&(document.querySelector('#gform_confirmation_message_1')||redirect)){confirmed=true;try{sessionStorage.removeItem('psy_contact_pending');}catch(err){}send('generate_lead',{contact_method:'contact_form',form_id:'contact_1'});}} function ready(){confirmation();new MutationObserver(confirmation).observe(document.body,{childList:true,subtree:true});if(window.jQuery)window.jQuery(document).on('gform_confirmation_loaded',function(e,id){if(Number(id)===1)confirmation();});} if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',ready);else ready(); })();

About PSYMONT

This author has not yet filled in any details.
So far PSYMONT has created 0 blog entries.
Go to Top