// This code would be injected into your Squarespace site's
section document.addEventListener('DOMContentLoaded', function() { // Parse URL parameters const urlParams = new URLSearchParams(window.location.search); const firstName = urlParams.get('firstName'); const companyName = urlParams.get('companyName'); // Check if parameters exist if (firstName && companyName) { // Update content on the page document.querySelectorAll('.dynamic-first-name').forEach(el => { el.textContent = firstName; }); document.querySelectorAll('.dynamic-company-name').forEach(el => { el.textContent = companyName; }); // You can add more dynamic content updates here } });