(function() { // Configuration const config = { targetDivId: 'priceHtml', containerId: 'hubspot-cta-container' }; // Check if CTA already exists (prevent duplicates) if (document.getElementById(config.containerId)) { console.log('HubSpot CTA already exists'); return; } // Find the target div const targetDiv = document.getElementById(config.targetDivId); if (!targetDiv) { console.error('Target div with ID "' + config.targetDivId + '" not found'); return; } // Create the container const ctaContainer = document.createElement('div'); ctaContainer.id = config.containerId; ctaContainer.style.cssText = 'margin-top: 20px; text-align: left;'; // Insert the HubSpot CTA HTML ctaContainer.innerHTML = ` buy-at-amazon `; // Insert after the target div targetDiv.parentNode.insertBefore(ctaContainer, targetDiv.nextSibling); console.log('HubSpot CTA successfully added after #' + config.targetDivId); })();