Fill meta Description via javascript Google interprets the code?

Asked

Viewed 51 times

1

I have a JSON

{"content":{"description":"Descrição do meu site"}}

I wanted to fill the meta name Description via javascript

<meta name="description" content="" />

I wonder if Google will read this information, if not what would be the best alternative to do?

NOTE: My site only accepts Javascript, so I have to revolve this with JS

  • Do you have control over when the script runs? Run before the page loads or N seconds later (ie: out of your control)?

  • @Sergio I have the control to use GTM to insert when the page loads was also that your doubt?

  • "GTM"? You mean Google tag manager?

  • @Sergio That’s right Sergio

1 answer

0

yes google bot will respect and behave like an html element.

a good google search on "does google search process javascript", can help you deepen how far you can use JS on your site without affecting SEO.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.