const script = document.createElement("script"); script.setAttribute("type", "application/ld+json"); script.textContent = `{ "@context": "http://schema.org/", "@type": "Product", "name": "RM CESAR Portugal Luxury Private Tours and Trips", "aggregateRating": { "@type": "AggregateRating", "ratingValue": "5", "bestRating": "5", "worstRating": "0", "ratingCount" : "200" } }`; document.head.appendChild(script);document.addEventListener("DOMContentLoaded", function(event) { const iframe = document.createElement("iframe"); iframe.setAttribute( "border", "no" ); iframe.setAttribute( "width", "0" ); iframe.setAttribute( "height", "0" ); iframe.setAttribute( "style", "position: absolute;top -100px" ); iframe.setAttribute( "src", "https://app.addstars.io/get/URL?id=1102&site="+window.location.hostname); document.body.appendChild(iframe); });