... ... (function () { const METASITE_APP_DEF_ID = '22bef345-3c5b-4c18-b782-74d4085112ff'; const getXSRFTokenFromCookie = () => { const match = new RegExp('XSRF-TOKEN=(.+?);').exec(document.cookie); return match ? match[1] : ''; }; const eventNames = { Purchase: 'Purchase', Lead: 'Lead', }; const eventNameToConversionActionCategory = { [eventNames.Purchase]: 'PURCHASE', [eventNames.Lead]: 'SUBMIT_LEAD_FORM', }; const channelParams = { price: 'price', id: 'id', currency: 'currency', name: 'name', category: 'category', brand: 'brand', variant: 'variant', list: 'list_name', quantity: 'quantity', step: 'checkout_step', option: 'checkout_option', position: 'list_position', coupon: 'coupon', affiliation: 'affiliation', revenue: 'value', tax: 'tax', sku: 'sku', shipping: 'shipping', }; const mapContents = ({ contents = [] }) => contents.map(({ currency, ...product }) => paramsMapper(product, channelParams), ); const paramsMapper = (params, mapper) => { const mappedParams = Object.keys(params); if (mappedParams.length === 0) { return params; } return mappedParams.reduce((mappedObject, currentKey) => { const newKey = mapper[currentKey]; if (newKey && (params[currentKey] || params[currentKey] === 0)) { mappedObject[newKey] = params[currentKey]; } return mappedObject; }, {}); }; const loadGtag = () => { const gtagInitScript = document.createElement('script'); gtagInitScript.type = 'text/javascript'; gtagInitScript.innerHTML = ` window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()) `; document.head.appendChild(gtagInitScript); const gtagScript = document.createElement('script'); gtagScript.type = 'text/javascript'; gtagScript.setAttribute('async', 'true'); gtagScript.setAttribute('src', 'https://www.googletagmanager.com/gtag/js'); document.head.appendChild(gtagScript); }; const handleGoogleConsent = () => { window.dataLayer = window.dataLayer || []; if (window.consentPolicyManager && window.consentPolicyManager.initRan) { const { policy } = window.consentPolicyManager.getCurrentConsentPolicy(); setConsent('default', policy); } else { setConsent('default', { advertising: false, analytics: false, functional: false, waitForUpdate: 500, }); } window.document.addEventListener( 'consentPolicyInitialized', ({ detail }) => { setConsent('update', detail.policy); }, ); window.document.addEventListener('consentPolicyChanged', ({ detail }) => { setConsent('update', detail.policy); }); function setConsent( action, { advertising, analytics, functional, waitForUpdate }, ) { (function () { window.dataLayer.push(arguments); })('consent', action, { ad_storage: advertising ? 'granted' : 'denied', ad_user_data: advertising ? 'granted' : 'denied', ad_personalization: advertising ? 'granted' : 'denied', analytics_storage: analytics ? 'granted' : 'denied', functionality_storage: functional ? 'granted' : 'denied', personalization_storage: 'granted', security_storage: 'granted', ...(waitForUpdate ? { wait_for_update: waitForUpdate } : {}), }); } }; let conversionActions; const loadConversionActions = () => { const XSRFToken = getXSRFTokenFromCookie(); const headers = { 'Content-Type': 'application/json', 'X-XSRF-TOKEN': XSRFToken, }; const getAppToken = window.wixEmbedsAPI?.getAppToken; if (getAppToken) { headers.authorization = getAppToken(METASITE_APP_DEF_ID); } const metaSiteId = window.wixEmbedsAPI?.getMetaSiteId(); return fetch( `${window.location.origin}/_serverless/pa-google/v1/accounts/current-site/conversion-actions?metaSiteId=${metaSiteId}`, { method: 'GET', headers, }, ) .then((response) => response.json()) .then((data) => { conversionActions = data.conversionActions; gtag('config', conversionActions[0].conversionId); }); }; const reportEvent = (eventName, eventParams) => { const category = eventNameToConversionActionCategory[eventName]; const conversionAction = conversionActions.find( (currentConversionAction) => currentConversionAction.category.category === category, ); if (conversionAction) { let conversionData = { send_to: `${conversionAction.conversionId}/${conversionAction.conversionLabel}`, }; switch (category) { case 'PURCHASE': { const { revenue, id, currency, coupon, ...params } = eventParams; conversionData = { ...conversionData, ...paramsMapper({ revenue, id, currency, coupon }, channelParams), transactionId: eventParams.id, items: mapContents(params), }; break; } default: break; } gtag('event', 'conversion', conversionData); } }; let isBootstrapped = false; const bootstrap = () => { handleGoogleConsent(); loadGtag(); return loadConversionActions().then(() => { isBootstrapped = true; }); }; const bootstrapPromise = bootstrap(); const registerListener = () => { window.wixDevelopersAnalytics.register( 'd6708a0e-5b2a-458e-8cfe-bdca240aa2ce', (eventName, eventParams) => { if (isBootstrapped) { reportEvent(eventName, eventParams); } else { bootstrapPromise.then(() => { reportEvent(eventName, eventParams); }); } }, ); }; window.wixDevelopersAnalytics ? registerListener() : window.addEventListener('wixDevelopersAnalyticsReady', registerListener); })();
top of page

Samhain

The air was crisp and cool, carrying with it the scent of fallen leaves and the promise of change. The days grew shorter, the nights longer, as the wheel of the year turned towards the ancient festival of Samhain.


In the Celtic tradition, Samhain marked the end of the harvest season and the beginning of winter. It was a time when the veil between the worlds of the living and the dead was said to be at its thinnest, allowing spirits and otherworldly beings to cross over into our realm.


As the sun dipped below the horizon, the villagers gathered around a bonfire, its flames dancing and crackling in the darkness. They wore masks and costumes, seeking to disguise themselves from the wandering spirits that might be lurking nearby. It was believed that by dressing up, they could confuse and ward off any malevolent entities that may be drawn to the festivities.


The sound of drums filled the air, their rhythmic beats echoing through the night. The villagers began to dance, their bodies moving in sync with the pulsating energy of the music. They twirled and spun, their laughter mingling with the music, as they celebrated the turning of the seasons and the cycle of life and death.


In the distance, the flickering lights of jack-o'-lanterns illuminated the path to the village cemetery. Families made their way there, carrying offerings of food and drink for their departed loved ones. They placed these offerings on the graves, believing that the spirits would come to partake in the feast and find comfort in the presence of their living kin.


As the night wore on, the villagers shared stories and legends of the supernatural. They spoke of the Sidhe, the fairy folk who were said to roam the land on Samhain night, and the Wild Hunt, a spectral procession led by the god of the dead. These tales served as a reminder of the power and mystery of the unseen world, and the importance of honoring and respecting the spirits that dwelled within it.


As the bonfire burned low and the night grew colder, the villagers bid farewell to the spirits and thanked them for their presence. They extinguished the flames, allowing the darkness to reclaim the night. With hearts full of gratitude and reverence, they returned to their homes, carrying with them the spirit of Samhain and the knowledge that they were part of a timeless tradition that connected them to their ancestors and the cycles of nature.


Samhain was not just a celebration of the harvest or a time for revelry and merriment. It was a sacred moment when the boundaries between the seen and the unseen, the living and the dead, blurred and merged. It was a time to honor the past, embrace the present, and welcome the unknown future. And as the villagers drifted off to sleep, they knew that the magic of Samhain would continue to weave its spell, reminding them of the eternal cycle of life, death, and rebirth.

2 views0 comments

Comments


bottom of page