Placing ad/tracking codes in of individual multisite pages.

I’m trying to add a couple of codes that need to be inserted into the <head> section. Each multisite requires a different code though.

How would I approach this? Is there a plugin I can run to do it?

Thanks in advance.