Ok have you tried embedding the whole thing in the footer HTML? What is the script and stuff for? Analytics? Are there any alternatives that don't require a script?
Yes, it breaks certain part when it is placed in that widget. It's so that when users from other countries click on the link for amazon they get redirected with the US referrer code link embedded their countries amazon store.