For example, to embed analytics on the page, I was going to create a component similar to the webtrends component, but have it add "webtrends.js" as a javascript include in the header only on the pages where the component is used (rather than sitewide).