To integrate and install other custom html/javascript widgets,
Navigate to the Admin Dashboard > Appearance > Themes and locate the Layout/Header.twig or simply go to Settings > General and scroll down, you may see the Header and Footer input bar.
Input the widget codes inside the and Save Changes to test if the widget is activated.