Retrieving elements from an iFrame can be complicated process due to cross-browser incompatibility. While one method might work for a user accessing your site with Internet Explorer, it may not work ...
You might be wondering - why would someone have to use Amplitude SDK through an iframe? The answer is simple - security policies. Some organizations require their websites to not execute arbitary code ...