Unfortunately, that only works for unique files and they must be located in the vB forum's root directory.
BTW, I did some experiementing and confirmed that the following code works fine for making vB aware of visitors/members browsing around in non-integrated scripts:
Code:
//****************************************************
chdir('/home/user/public_html/vbforumpath/');
require_once('./global.php');
chdir('/home/user/public_html/nonforumscriptpath/');
//****************************************************
That code should be inserted at the top of the non-forum script.