I have some js which, rather than register and enqueue, I add directly to a page template.
Currently located outside of WP, I use
<script type="text/javascript" src="/apps/js/amplitude/amplitude.js"></script>
If I move it to a js
folder inside my theme, how do I then include it in a template without hardcoding a root-relative path... can I use something like get_template_directory_uri
?