Hi,
This tip is free and may help you.
IF THIS IS AN IN-PAGE SCRIPT, e.g. ADVERT
Your theme may have a home.php, if it does you can add your javascript directly to this and it will only affect the home page.
If it doesn’t have a home.php you can add your script to index.php in the following way and it will only appear on the home page:
<?php if ( is_home() ) { ?>
YOUR SCRIPT HERE
<?php } ?>
IF THIS IS A SCRIPT THAT NEEDS TO GO IN THE HEADER
Edit header.php and place the script before the closing head tag using the same code above, which will cause it to only load in the header when the user is on your home page.
I usually edit my site files on my PC and then upload via FTP, but you can also do this directly in the WP admin area.
Navigate to Appearance > Editor and select the header.php, home.php or the index.php depending on the above info.
Hope this helps.