universal-starter icon indicating copy to clipboard operation
universal-starter copied to clipboard

*Question* Setting Dynamic Meta Tags with HTTP calls?

Open tskweres opened this issue 4 years ago • 1 comments

All of the examples I see for setting meta tags involve static strings / hard-coded meta tags.

Is it possible to dynamically set meta tags ( title, description ) based on an HTTP call, for example in an e-commerce website with thousands of products?

I'm trying to find an example of dynamically setting meta tags in a component before it is rendered, so that the content will show up on social media sites. Any help is appreciated!

tskweres avatar Mar 26 '20 21:03 tskweres

I am also having the same query. If the meta tags are hard-coded, they are detected by Facebook. But if the tags are set as per values retrieved from api call then facebook does not detect them.

nikhilbhalwankar avatar Jan 25 '21 14:01 nikhilbhalwankar