How do you use JavaScript to add Meta tags in the header?

Has anyone in the “Page HTML Header” section (image below) implemented JavaScript before? I’m trying to add in meta tags into the header but can’t for the life of me figure out how to actually make it place meta tags into the html header using JS. Here’s the code I have:

<script>
var link=document.createElement('meta');
link.name="my:url";
link.content="Content should be displayed";
document.getElementsByTagName('head')[0].appendChild(link);
</script>

Screenshot_2

If anyone can help that would be great, here’s an example of the problem that you can view: https://bubble.io/page?type=page&name=index&id=seoproblems&tab=tabs-1

Trying to get the coin name in the title and description seo section.

Any news ? I am intersted in a solution to put header tags !

Click the home text below the box to edit the script, then save it.
Highlight the text you wish to edit and click the insert dynamic data to replace the highlighted text

This topic was automatically closed after 70 days. New replies are no longer allowed.