Send trackPageView to different SiteIds

Is it possible to send a trackPageView get request for 2 different siteIds on the same piwik server? I have the javascript twice, one for each siteid, but the values are being overwritten and both get requests are sent for the same siteId. I’m using piwik 1.12.

Nevermind, I found the answer to my question. The synchronous java tracking object must be used as specified on the following page. (Multiple Piwik Trackers)