Assuming you are using the new Google Analytics asynchronous code, all you have to do is place this code in a JavaScript block where you render your modal dialog.
_gaq.push(['_trackPageview', '/fake/modal/path/here']);
,
pageTracker._trackPageview('/fake/modal/path/here');
, _trackPageview , , . , , . URL, :