Are the pixel codes based on actions (clicks, sales, etc)?

 

Does the system separate them by campaign?

 

Correct. Pixels are based on actions and the system knows how to separate.