", "answerCount": 2, "upvoteCount": 0, "datePublished": "2024-12-15T20:06:26.000Z", "author": { "@type": "Person", "name": "Shanika Nishani", "url": "https://trailblazers.salesforce.com/profileView?u=0053A00000FT5CRQA1", "affiliation": { "@type": "Organization", "name": "--" } }, "suggestedAnswer": [ { "@type": "Answer", "text": "Hi @Ashwini Garwandha https://trailblazers.salesforce.com/profileView?u=0054S000002svOUQAY , I have tried the solution that is given in the post  but it did not work as expected.", "upvoteCount": 0, "url": "https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000J8TSq0AN", "datePublished": "2024-12-19T06:24:43.000Z", "author": { "@type": "Person", "name": "Shanika Nishani", "url": "https://trailblazers.salesforce.com/profileView?u=0053A00000FT5CRQA1", "affiliation": { "@type": "Organization", "name": "--" } } } ] } } Skip to main content
Shanika Nishani a posé une question dans #Salesforce Developer

Hello ,

is there any possibility that we can  inject script to the headers dynamically in to a experience site through a LWC.

Sample script : 

 

<head>    <script type="application/ld+json">    {      "@context": "https://schema.org",      "@type": "BreadcrumbList",      "itemListElement": [{        "@type": "ListItem",        "position": 1,        "name": "Books",        "item": "https://example.com/books"      },{        "@type": "ListItem",        "position": 2,        "name": "Science Fiction",        "item": "https://example.com/books/sciencefiction"      },{        "@type": "ListItem",        "position": 3,        "name": "Award Winners"      }]    }    </script>  </head>

 

#Salesforce Developer

 

#Digital Experience  #LWC

2 réponses
0/9000