Custom tracking on embedded PDF
Hi,
I'm using an external analytics API on my site. For it to be able to track activity in iframes, they say I need to include the tracking code into said iframes as well. In other cases, even for iframes from other domains, this simple thing worked:
<iframe src="...">
<script>
//tracking code
</script>
</iframe> But with the PDF Embed API I'm starting with a div, in which the iframe is created dynamically. Is there any way I can get my tracking code there?
I tried adding the tracking code into the iframe.innerHTML after it's created but that doesn't seem to work for the tracking...
Thanks in advance!
