If your goal is page-level engagement, embed your PDF in a viewer like Adobe PDF Embed API or PDF.js. If you just need download counts, GA4 enhanced measurement gets you there fast, and a GTM custom event gets you accurate, named events. For compliance records, Google Drive audit logs give you access evidence; for email or gated files, server logs or tracked redirect links fill the gap.


TL;DR:

  • Adobe PDF Embed API reports page changes, searches, and downloads only after analytics is enabled and a JavaScript callback is registered.
  • GA4 enhanced measurement counts recognized file downloads automatically, but it cannot isolate PDFs; GTM can add file names, while captured URLs stop at 100 characters.
  • Drive audit logs record View, Download, Print, Upload, and Delete events, but print entries may lag 12 hours and previews can appear as downloads.
  • For emailed or protected PDFs, unique redirect links can tie clicks to recipients and server logs can count requests, but neither reveals reading behavior.
  • Start with GA4 enhanced measurement, then add GTM events and embed your top PDFs when page level engagement can guide decisions.

Yonderly
Keep Sales Content Current
Yonderly keeps shared files updated and accessible, with interactive presentations that teams can use online or offline.

Explore Yonderly

Table of Contents

How PDF viewer events work with Adobe and PDF.js

When you embed a PDF instead of linking to a raw file, the viewer itself can report what readers do inside the document. This is the only way to get page-level detail: a download count tells you someone grabbed the file, but it never tells you whether they read page 2 or stopped at page 1.

PDF pages with separate activity markers

Adobe’s PDF Embed API fires a set of named events once you set enablePDFAnalytics to true and register a JavaScript callback to catch them. You can forward these events straight into your analytics property.

Events you’ll typically see:

  • a.dc.loadPDF: the document finished loading
  • a.dc.viewPage: the reader moved to a new page
  • a.dc.download: the reader downloaded the file
  • a.dc.search: the reader searched inside the document
  • a.dc.bookmarkClicked, a.dc.copyText, a.dc.print, a.dc.zoomLevel: secondary interaction signals

Adobe’s documentation frames PDF analytics as viewer events, not file attributes. A hosted PDF link alone can’t report reading behavior; you need an instrumented viewer to capture it.

If you’d rather avoid Adobe’s API, PDF.js renders pages as HTML canvas output, which makes it straightforward to emit your own custom events, like pagechange, download, and viewFind, and wire them into whatever analytics tool you already use.

Track PDF downloads with GA4: enhanced measurement vs. GTM

For most teams, the fastest path to a download count is GA4’s enhanced measurement. Turn on File downloads in your GA4 property and it automatically logs a file_download event whenever someone clicks a link to a recognized file type, no extra code required.

The trade-off is customization. Enhanced measurement can’t be filtered to PDFs only, and it won’t let you add a custom file_name parameter beyond what it captures automatically. If you need cleaner, more specific tracking, a GTM custom setup gives you that control.

Five steps to set it up:

  1. Enable the built-in Click URL variable in your GTM workspace.
  2. Create a link-click trigger filtered to URLs ending in .pdf.
  3. Build a GA4 Event tag with a distinct event name, like pdf_download.
  4. Add parameters such as file_name and link_url to the tag.
  5. Test the setup in GTM Preview mode and confirm the event fires in GA4 DebugView, then publish.

One detail worth knowing before you launch: GA4 truncates captured link_url values at 100 characters, which can cut off longer file paths. Sending file_name as its own parameter avoids that problem entirely.

Pro Tip: If you enable both enhanced measurement and a custom GTM event for the same files, you’ll double-count downloads. Pick one, or give your custom event a name that’s clearly different from GA4’s automatic file_download.

Sometimes you can’t embed a viewer or inject a tracking script, maybe the PDF lives behind a firewall, goes out over email, or sits on a server you don’t control. In those cases, server logs and tracked links are your fallback.

Every request for a PDF file leaves a trace on the server: timestamp, referrer, and user agent. Parsing these logs gives you a reasonably reliable open count, even without any JavaScript running in the viewer.

To get more precise attribution:

  • Build a unique redirect link per recipient so each click ties back to a specific person.
  • Use signed URLs for gated or sensitive files to block casual hotlinking and keep your counts clean.
  • Route email campaign links through a tracked landing page instead of a direct file link.

The catch is depth: logs tell you a file was requested, not what happened once it opened. This approach works best for email campaigns and protected downloads where identity matters more than engagement detail.

What Google Drive audit logs record, and what they miss

If your files live in Google Workspace, Drive’s audit logs already capture a layer of access data without any setup on your part. They record View, Download, Print, Upload, and Delete events, tied to the actor and the file type, which makes them genuinely useful for compliance reviews and admin oversight.

Two quirks are worth knowing before you rely on them:

  • Print events inside the Drive viewer can be delayed in the log, sometimes by 12 hours or more.
  • Previewing a file through certain URL flows, like /htmlview or /embed, can be logged as a Download event instead of a View, and anonymous users’ actions are sometimes logged too.

Drive audit logs are access evidence, not engagement evidence. They tell you a file was opened or downloaded; they don’t tell you whether anyone actually read it.

How to choose the right method: a measurement hierarchy

Before picking a tool, it helps to think in layers. Measurement generally moves through five stages: reach (did anyone open it), navigation (which pages they visited, what they searched), attention (time spent, interactions), depth (did they reach the final page), and reuse (download, print, copy). Deciding which layer matters to you narrows your tool choice fast.

Match your goal to a method:

  • Marketing engagement: embed a viewer and send events to your analytics platform.
  • Compliance or audit trail: Drive audit logs or secure, tracked hosted links.
  • Quick, low-effort counts: GA4 enhanced measurement, no setup beyond a toggle.

Before you commit, check four things:

  • Can you run JavaScript in the viewer or page where the PDF lives?
  • What’s your distribution channel: website, email, or Drive?
  • Do you need named-user detail, or is an anonymous count enough?
  • What privacy and consent requirements apply to your audience?

Getting this sequencing right matters more broadly too.

Quick implementation checklist for each tracking method

Pick the row that matches your setup and work through it in order.

For an embedded viewer:

  1. Add your client ID to the Adobe PDF Embed API configuration.
  2. Set enablePDFAnalytics to true.
  3. Register your event callback function.
  4. Map incoming events (page view, search, download) to your analytics tool.

For GA4:

  1. Enable File downloads under enhanced measurement for a quick baseline, or build the GTM custom pdf_download event for more control.
  2. Test the event in GTM Preview and confirm it in GA4 DebugView before publishing.
  3. Filter your reports by file_name to isolate PDF performance from other downloads.

For server-side tracking:

  1. Route downloads through a redirect URL that logs a recipient ID or unique token.
  2. Schedule a daily job to parse the logs and update your counts.

Pro Tip: Start with whichever checklist matches your current distribution channel, then layer in a second method once you know what question you’re actually trying to answer.

Why a no-code platform can simplify PDF tracking

Building and maintaining viewer events, GTM tags, and log parsers takes ongoing engineering time, time most marketing and sales teams don’t have to spare. This is where a managed platform earns its keep: a single updatable link replaces the static PDF entirely, with engagement tracking already wired in.

What that looks like in practice:

  • One link stays current: upload a replacement file and it updates everywhere it’s shared, no resending required.
  • Engagement tracking works across devices, online or offline, without separate tagging setups per platform.
  • QR code analytics let you measure engagement before a document is even printed.

If your team is scaling past a handful of PDFs, needs cross-device distribution, or is already hitting the limits of in-house tagging, piloting a managed platform is often faster than building the tracking yourself.

Practical trade-offs and a 30/60/90 starter plan

My honest recommendation: don’t start with the most sophisticated setup. Start with GA4 enhanced measurement to establish a reach baseline, since it takes minutes and tells you whether anyone is opening your files at all.

From there, layer in GTM and an embedded viewer for your highest-value assets, the ones where page-level engagement actually changes a decision you make. Reserve a managed platform for the point where distribution or device control, not analytics, becomes your actual bottleneck.

A simple sequence:

  • Days 1 to 30: enable GA4 enhanced measurement, establish download baselines.
  • Days 31 to 60: add GTM custom events and embed your top three or four PDFs for page-level data.
  • Days 61 to 90: evaluate a no-code platform if device-managed distribution or stale-file issues are slowing you down.

— Paul

Instead of rebuilding viewer events and GTM tags for every PDF you share, we give you one updatable link with engagement tracking already built in, so a single pitch deck or spec sheet stays current and reports back automatically, on any device, online or off.

Yonderly

See how it works with a 7-day pilot or check pricing plans starting at $29 per month to find the fit for your team.

FAQ

Can I search a PDF file?

Yes, most PDF viewers include a built-in search function, and instrumented viewers like Adobe PDF Embed API can log search activity as an event (a.dc.search), which gives you insight into what readers are looking for inside the document.

How do I track page views in Google Analytics?

GA4 doesn’t track in-document PDF page views by default since a PDF link only triggers a file_download event. To capture page-level navigation, you need to embed the PDF in a viewer that emits page-change events and forward those events into GA4 as custom events.

Does Google have a PDF viewer?

Google Drive includes a built-in preview viewer for PDFs, and opening a file through it can generate View, Download, or Print entries in Drive’s audit logs depending on the access method used.

Can you track PDF edits?

Within Google Drive, edit-related actions like Create, Upload, and Delete are captured in the audit log alongside the actor who performed them. Standalone PDF viewers generally don’t track edits unless the file is being edited through a connected document management system.

Sources