{"version":3,"file":"siteMetadata.Ca0X1FqK.mjs","names":[],"sources":["https:/framerusercontent.com/modules/a1BR1XBnOGZsKYUZtjkS/87ZKgp8P4NV5jeCa4UQ2/siteMetadata.js"],"sourcesContent":["// Generated by Framer (808fccf)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:\"<!-- Google Tag Manager (noscript) -->\\n<noscript><iframe src=\\\"https://www.googletagmanager.com/ns.html?id=GTM-PWH3VLZ2\\\" height=\\\"0\\\" width=\\\"0\\\" style=\\\"display:none;visibility:hidden\\\"></iframe></noscript>\\n<!-- End Google Tag Manager (noscript) -->\\n\\n<script>\\n  console.log('👀 Form submission watcher initialized');\\n  \\n  // Watch for the thank you message (form submission complete)\\n  const observer = new MutationObserver(function(mutations) {\\n    mutations.forEach(function(mutation) {\\n      mutation.addedNodes.forEach(function(node) {\\n        if (node.nodeType === 1) {\\n          const text = node.textContent || node.innerText;\\n          \\n          // Check for thank you message\\n          if (text && (text.includes('Thank you') || text.includes('Form submitted')) && text.includes('be in touch')) {\\n            console.log('✅ Form submitted - Thank you message detected!');\\n            \\n            // Push to dataLayer for GTM\\n            window.dataLayer = window.dataLayer || [];\\n            window.dataLayer.push({\\n              'event': 'hubspot-form-success',\\n              'hs-form-guid': 'b5179f46-1a9f-4843-a754-e4e3b8bead0b',\\n              'hs-form-name': 'commercial'\\n            });\\n            console.log('📊 dataLayer pushed:', {\\n              event: 'hubspot-form-success',\\n              guid: 'b5179f46-1a9f-4843-a754-e4e3b8bead0b'\\n            });\\n            \\n            // Also directly capture in PostHog (backup)\\n            if (typeof posthog !== 'undefined') {\\n              posthog.capture('hubspot_form_submitted', {\\n                formGuid: 'b5179f46-1a9f-4843-a754-e4e3b8bead0b',\\n                formName: 'commercial',\\n                pageUrl: window.location.href,\\n                pagePath: window.location.pathname\\n              });\\n              console.log('🟣 PostHog directly captured');\\n            } else {\\n              console.warn('⚠️ PostHog not loaded yet');\\n            }\\n            \\n            // Stop observing after first submission\\n            observer.disconnect();\\n          }\\n        }\\n      });\\n    });\\n  });\\n  \\n  // Start observing when DOM is ready\\n  if (document.readyState === 'loading') {\\n    document.addEventListener('DOMContentLoaded', function() {\\n      observer.observe(document.body, {\\n        childList: true,\\n        subtree: true\\n      });\\n    });\\n  } else {\\n    observer.observe(document.body, {\\n      childList: true,\\n      subtree: true\\n    });\\n  }\\n</script>\\n```\\n\\n5. Click **Save**\\n\\n## Step 3: Publish Everything\\n\\n1. **In Framer**: Click **Publish** (top right)\\n2. **In GTM**: Make sure your container is published (your setup should already be good)\\n\\n## Step 4: Test!\\n\\n1. **Clear browser cache** (Ctrl+Shift+Delete)\\n2. Open your page in **new incognito window**\\n3. **Open Console** (F12)\\n4. You should immediately see: `👀 Form submission watcher initialized`\\n5. **Fill out and submit the form**\\n6. Watch for these logs in order:\\n```\\n   ✅ Form submitted - Thank you message detected!\\n   📊 dataLayer pushed: {event: 'hubspot-form-success', ...}\\n   🟣 PostHog directly captured\",customHTMLHeadEnd:\"<!-- Plausible -->\\n<script defer=\\\"\\\" data-domain=\\\"electricitymaps.com\\\" src=\\\"https://plausible.io/js/script.outbound-links.tagged-events.js\\\"></script>\\n\\n<!-- Google Tag Manager -->\\n<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\\nj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\\n'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\\n})(window,document,'script','dataLayer','GTM-PWH3VLZ2');</script>\\n<!-- End Google Tag Manager -->\",description:\"Electricity Maps provides global access to electricity mix, prices and carbon intensity. Available in real-time, historically and forecasted.\",favicon:\"https://framerusercontent.com/assets/MINtnQOWqjiktZPEy1DAImzNE.svg\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/WWBxss7ttE3h54fSGfeg99CBI.png\",title:\"Electricity Maps | The world’s most comprehensive electricity data platform\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"2DACA,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAA2kG,kBAAkB;;;;;;;;;iCAA2kB,YAAY,gJAAgJ,QAAQ,qEAAqE,OAAO,0BAA0B,YAAY,qEAAqE,MAAM,8EAA8E"}