Iframe are just like another tab or window, obviously stats tracking placed on one window is not going to track another window, as a result you need to put tracking inside with the page being loaded in the ufrane or use a tracking redirect fir the URL being loaded