~things that matter~

Category: Outside The Box

Some Adobe Analytics magic in PDFs

[Update: 2020-04-04: We now have a productized solution via a client-side PDF rendering engine, DCViewSDK. I have removed the technical details of the custom solution from here.]

Back in South Africa, our customer wondered how some companies claimed to be “magically” tracking what you did inside a PDF document. And they asked why hadn’t Adobe Analytics got something similar; especially Adobe being the PDF pioneer.

The company was interested to understand the consumption of their clients’ PDF brochures and targeting those who reviewed the stock price (page).

Now, ever wondered how it might feel to be able to understand what content inside that beautiful pdf brochure people are looking at?

  • Send a personalized message to a potential customer who read about a new offering in the brochure.
  • Figure out if a piece of info out there may make more sense at a prominent location on the website real estate rather than buried deep within a voluminous pdf.
  • Or even for the designer, is there a piece of content that forced users to zoom in?

The Problem

You are not alone. PDF Analytics or document analytics in a broader sense had been a path rarely traveled. There were not a whole lot of options for accessing a URL or data collection over the internet. That kind of restricted Analytics efforts on downloaded documents.

The Solution

However, as most browsers are now capable of rendering PDF documents, the question becomes simpler. How do we add Adobe Analytics client-side technologies into the content that’s already sitting there, in the browser, in plain HTML?
The answer is a JavaScript-based PDF parsing and rendering engine. Once the PDF document is rendered in the browser and you get access to the DOM, you can very easily deploy Adobe Analytics and the Launch Tag Management Solution. With minimal coding, you can capture the page number and interactions therein: zoom, search, select, copy text, and print to name a few.

The initial solution leveraged a good 3rd-party library for rendering PDFs. However, a lot has changed after that, and we now have a great rendering engine called the View SDK from Adobe. Adobe Analytics integration comes pre-built.
At this point, I would rather suggest you review the widely available documentation and public posts (including this one I wrote) on the topic.

PDF Analytics may soon become the new norm. The great thing is that it can be done in a Non-Destructive way. The plugin is easy to deploy and manage! Please, try it today!

Drupal This Time!

IFs and Loops can do Wonders!

Every time I had to induce some confidence in a budding programmer, I would say – you need to remember two things: the conditionals and the repeating loops. Humans invented computers to do just those two things – the comparisons again and again, and yet again, without being stressed out.
On a trip to Dulles (the airport in DIE HARD 2, not Dallas), we encountered a need to upgrade a large internal portal based on Drupal. The upgrade failed and we were about to roll back.

Though I had tested Drupal once or twice for personal projects, handling it in an enterprise set up was a different beast. However, with confidence in the “backup” we had taken, I went ahead and made some script changes to facilitate an upgrade. Voila, it went through. Boss said “you just paid for your trip!

Instances like that make you believe in yourself. In subsequent days and weeks, I built Drupal modules, linked that with Adobe/Omniture API. Built user self-certification system for requesters to prove their knowledge on Omniture (Adobe) Discover and claim their reward – the access permissions to Discover! This would also communicate with the organization LDAP jumping across servers and making sure ex-employees’ permissions were revoked. And did I mention, I had to make the module randomly pull a healthy mix of easy and not-so-easy questions?

Protected: Reinventing the Wheel (Literally)

This content is password protected. To view it please enter your password below:

Deepak Ranjan Kar