How to Add Meta Tags in Index.html file

I want to add some Meta Tags to my index.html file but I don’t have access in the editor.
Is there any way I can add Meta tags from editor (May be in JS file or in seperate html file) and when I download my build, it appears in my main index.html file.

Regards

Hi @Faisal,

Sadly that isn’t possible, adding metatags in editor like that.

You could potentially use javascript to edit them on runtime but that won’t do any good. Web crawlers and browsers won’t pick them up when the page loads (JS executs later).

You will have for the moment to download your build and edit them each time. You could potentially use the Rest API through a server script of your own to automate this task.

https://developer.playcanvas.com/en/user-manual/api/

1 Like