OPTION 1: Use a WordPress Plugin
While everyone’s WordPress setup is different, your theme should have a footer.php file. To access this you will need to go to do the following:
WordPress Dashboard > Menu Item: Appearance > Sub-Menu Item: Editor.
When you get to your editor screen, look for your Theme’s Footer (footer.php). Click that.
Now your Theme’s Footer (footer.php) should be showing up. Go to the code area below
<?php wp_footer(); ?>. Below that, but above the closing
</body> tag is where your code should go.
Therefore, it should looking something like this: