Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*Question* Setting Dynamic Meta Tags with HTTP calls? #240

Open
tskweres opened this issue Mar 26, 2020 · 1 comment
Open

*Question* Setting Dynamic Meta Tags with HTTP calls? #240

tskweres opened this issue Mar 26, 2020 · 1 comment

Comments

@tskweres
Copy link

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!

@nikhilbhalwankar
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants