Follow these simple steps in order to add JavaScript code snippets to your WordPress website:
- Login to your admin WordPress account.
- View the page of your site that the JavaScript would apply to.
- Select ‘Customize’ in the admin bar (found at the top of your browser).
- Once the Customizer settings open, select ‘Additional Scripts’.
- There are currently 3 areas that you can add JavaScript code to: Header, Footer and Body.
- Header: This will load within the
<head>
tags. Google Tracking Code Goes Here. - Footer: This will load within the
<footer>
tags. - Body: This will load before the closing
</body>
tag.
- Header: This will load within the
- Select ‘Publish’ button to save your changes.
Please remember to include your <script>
tags when adding in JavaScript to your WordPress website.