Site icon Hip-Hop Website Design and Development

How to embed script in custom post type with dynamic value

need advice…I have a demo script for example:
<script type="text/javascript" src="https://ssl.hhhdgg.com/embed_loader.js"></script> <script type="text/javascript"> total.embed.Widget("P", {"comparisonItem":[{"keyword":"**My_Query**":0,"property":""}; </script>
that I want to embed in a custom post type and change maybe with the custom field the My_Query string for every new post to something else
Any Idea?
Thank u