where should i put the opentracker.net javascript code?

You can paste the code anywhere on your pages.

We recommend pasting the Javascript code into the HTML page above the end </body> - tag of each page you want to track.

Save the page with the Javascript code. Upload the HTML pages that contain the Javascript code with an FTP program as with any webpage.

More advanced javascript implemetation documentation can be found in the docs