Is it possible that I can insert a tracking code of Google analytics in PDF file? I want to know where are users coming from and how users behave in my PDF file.
Please do guide me if you know some process or approach…
I know that PDF accepts some javascript, but I don’t know if its capable of google analytics.
Thanks!
You can’t, to my knowledge, insert the actual Google Analytics JavaScript snippet into a PDF.
EDIT: My previous answer was incorrect; I said you could embed the
__utm.gifthat GA fires in the PDF, but @Mark is correct in saying this is not possible.The correct answer is: It’s not possible to embed an external resource in a PDF, at least not with modern PDF readers with basic security settings.