CMS collection embed dynamic code into <head>

If anyone else finds this thread because they have the same issue, the answer is in a different thread. Check this out - JSON schema from CMS - #2 by webdev