Please use sample which support multi sources, like test5 sample, and specify each source group have one input, in your case, specify 2 source group with each group have one input, and 2 analytic module as you pasted.
each input source corresponded with each analytics module.
May i know you just did for test or have real user case, let’s say, if you have 2 source group, each group have numbers of input, supposed here numbers is 2, and analytic module in the config is 4, and each input correspond with each analytic module.