Yes, alexa, uses mostly toolbars or extensions.
Install on your browser the extension and also put in your web site the code to show your alexa rank, they also count by measuring how many different ips visit you page if it has the code on your own page.
Did you wan to put the code in a iframe?