so here's an example (look at the 2nd widget):
we give stations a bit of code that includes a bit of js
that js has all the tracking code, and does a document.write to iframe in the widget:
(this is probably not the most elegant way to do it. it predates me.)
there are 2 things you need to change in the js:
the ref to the iframe, and this line:
change npr_election_2012_widget to something more appropriate
whatever you want it to be
Add widget tracking js. #187.
Done, with three open questions:
Inaug widget doesn't have that feature -- everything points to the app this time. Can remove the audio bit from the station embed code.
You could check with Jeff Nemic, but I'd just leave it. I suspect it's a separate Member and Program Services analytics acct.
Double check that the .js file isn't dependent on anything on www. I suspect it would be fine living on apps.
Here is the code to embed the widget:
nprInaugurationWidth = 960;
nprInaugurationHeight = 230;
Default size is 300x500 if not provided.
But it should be fine to just pull that cross-domain. (It's working now.)
Closing this now.