Sometimes it is needed to add custom JavaScript codes before the closing </body> of your site. Instead of modifying the core files of the theme and losing these changes on future updates or breaking your site completely, navigate to Theme Options -> General Settings -> Tracking Code / Header Code / Body Code section and paste your code under the Code before </body> section

The code added here will be placed in the header, before the closing </body> tag.