Fondation Perce-Neige
7 bis, rue de la Gare, CS 20171, 92594 LEVALLOIS-PERRET CEDEX
Tél. : 01 47 17 19 30
Fax : 01 47 17 19 31
E-mail : service-donateurs@perce-neige.org
ez nous :

Perce-Neige
7 bis, rue de la Gare, CS 20171
92594 LEVALLOIS-PERRET CEDEX
Téléphone : 01.47.17.19.30
Email : service-donateurs@perce-neige.org

document.addEventListener('DOMContentLoaded', function () { pushPageView(); }); function pushEvent(payload) { if (!_consentGranted) return false; window.dataLayer.push(payload); return true; } // Returns an object with the page data to be sent to the dataLayer. function getPageData() { var path = window.location.pathname.replace(/^\//, ''); var segments = path.split('/').filter(Boolean); return { category: segments[0] || '', subcategory: segments[1] || '', name: document.title .replace(/\s*[-–]\s*Fondation Perce Neige\s*$/i, '') .trim(), path: path, }; } // Pushes a page_view event to the dataLayer on page load. function pushPageView() { pushEvent({ event: 'page_view', page: getPageData(), }); } function trackDonationStart() { pushEvent({ event: 'donation_start', donation: { name: 'donation' }, }); } function _pushDonationEvent(eventName, type, amount, paymentMethod) { pushEvent({ event: eventName, donation: { type: type, amount: amount, currency: 'EUR', payment_method: paymentMethod, }, }); } function trackDonationSubmit(type, amount, paymentMethod) { _pushDonationEvent('donation_submit', type, amount, paymentMethod); } function trackDonationSuccess(type, amount, paymentMethod) { _pushDonationEvent('donation_success', type, amount, paymentMethod); } function _pushRecruitmentEvent(action, jobTitle, location, destinationUrl) { var component = { name: jobTitle, action: action, location: location }; if (destinationUrl) component.label = destinationUrl; pushEvent({ event: 'recruitment', component: component }); }