# Track downloads and sign-ups

- Check 41.10 · Tracking and analytics setup · Critical
- Source: https://checklist-seo-geo.com/en/tracking-analytics-setup/track-downloads-sign-ups
- Track PDF downloads, newsletter sign-ups, account creations and free trials in GA4 or Matomo, including PDFs opened straight from Google.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/tracking-analytics-setup/track-downloads-sign-ups.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

A downloaded white paper, a newsletter sign-up, a created account or a started free trial are micro-conversions: they do not bring in money right away, but they measure how much interest a piece of content generates. This task is about measuring them properly in GA4 or Matomo, each with its own event. Once this is in place, you know which content, which sources and which visits from AI assistants grow your audience and your prospect base.

## Why it matters

A large share of SEO and GEO content does not aim for an immediate sale: guides, studies, technical data sheets, comparisons. Its value shows in what it triggers. Without measurement, a heavily downloaded PDF guide looks like a page with no results.

Tools measure part of this on their own, with blind spots:

- **Downloads**: GA4's enhanced measurement sends `file_download` when a visitor clicks a link whose URL ends with a known extension (pdf, xlsx, docx, csv, zip, mp4…). A button that downloads through JavaScript, or a URL with no extension (`/telecharger?id=42`), is not seen. Matomo also tracks download links based on a list of extensions.
- **PDFs opened from Google or an AI assistant**: the visitor lands directly on the file, no script runs, and the analytics tool sees nothing. Only server logs and Search Console count these visits.
- **Sign-ups**: no tool knows that a newsletter or account creation form has succeeded. You have to tell it.

## What it improves

- **Content evaluation**: guides and resources are judged on their downloads and sign-ups, not just on their visits.
- **B2B and SaaS management**: sign-ups and trials by source and by landing page, upstream of revenue. See [present trial terms](https://checklist-seo-geo.com/en/saas-b2b-seo/present-trial-terms).
- **Content cited by AI**: a frequently cited PDF or guide is also measured by the sign-ups it generates.
- **Format decisions**: check whether a PDF deserves to be turned into an HTML page. See [optimize public PDFs](https://checklist-seo-geo.com/en/videos-pdfs-multimedia/optimize-public-pdfs).
- **Rankings**: no direct effect.

## How to check

1. **Enhanced measurement**: `Admin > Data collection and modification > Data streams`, your web stream. The “Enhanced measurement” panel must be turned on, with the “File downloads” option ticked.
2. **Download test**: with [Tag Assistant](https://tagassistant.google.com/) connected, click a link to a PDF. A `file_download` event must be sent with `file_name`, `file_extension` and `link_url`.
3. **Sign-up test**: sign a test address up for the newsletter and create an account. A dedicated event must be sent only once, after confirmation.
4. **Reception**: check in `Admin > Data display > DebugView` (GA4) or in the visits log (Matomo).
5. **PDFs as landing pages**: in Search Console's [Performance report](https://search.google.com/search-console/performance/search-analytics), filter pages on `.pdf`. Substantial clicks on PDFs indicate traffic the analytics tool does not see.

## How to implement

### Before you start

Assign actions to events, with stable names:

| Action | GA4 event | Useful parameters | Key event? |
|---|---|---|---|
| Download of a public file | `file_download` (automatic) | `file_name`, `file_extension`, `link_url` | No, unless it is a strategic resource |
| Download of a gated resource | `generate_lead` | `form_name: livre_blanc_2026` | Yes |
| Newsletter sign-up | `newsletter_signup` (custom name) | `form_location: pied_de_page` | Depending on your goals |
| Account creation | `sign_up` (recommended) | `method: email` or `google` | Yes |
| Free trial start | `sign_up` or `trial_start` (custom) | `method`, `plan: pro` | Yes |

`sign_up` and `generate_lead` are events recommended by Google; `newsletter_signup` and `trial_start` are custom names. Keep them in your tracking plan so that every site in the group uses the same ones.

### Downloads with GA4

Nothing to code for direct links to files:

1. `Admin > Data collection and modification > Data streams`, click your web stream.
2. Under “Enhanced measurement”, click the settings icon and tick “File downloads”.
3. To read the file name in reports, create a custom dimension with the “Event” scope on the `file_name` parameter in `Admin > Data display > Custom definitions`.

For a download that enhanced measurement does not see (JavaScript button, URL with no extension), send the event yourself with the same parameters:

```js
document.querySelector('#bouton-catalogue').addEventListener('click', () => {
  gtag('event', 'file_download', {
    file_name: 'catalogue-2026',
    file_extension: 'pdf',
    link_url: 'https://example.com/telecharger?id=42',
  });
});
```

With Tag Manager, use a `Click - Just Links` trigger filtered on `Click URL` contains `/telecharger` and a GA4 `file_download` event tag. If enhanced measurement is also active, do not create a tag for links it already measures: every click would count twice.

### Downloads with Matomo

Matomo automatically tracks clicks on links whose extension is in its default list, which includes pdf, docx, xlsx, zip and most common formats. Downloads appear in `Behaviour > Downloads`. To add an extension or force tracking of a link:

```js
_paq.push(['addDownloadExtensions', 'epub|ics']);
```

```html
<a href="/telecharger?id=42" class="matomo_download">Download the catalog</a>
```

The `matomo_download` class forces a link to be tracked as a download, whatever its URL. For a goal, choose the “Download a file” trigger with a pattern on the file name.

### Sign-ups and trials

Send the event after the server's confirmation, never on the button click.

**gtag.js**

```js
// after a successful newsletter sign-up
gtag('event', 'newsletter_signup', { form_location: 'pied_de_page' });

// after an account is created
gtag('event', 'sign_up', { method: 'email' });
```

**Tag Manager**: the site pushes `dataLayer.push({ event: 'sign_up', method: 'email' });`, and a `sign_up` “Custom Event” trigger fires a GA4 event tag with the same name.

**Matomo**

```js
_paq.push(['trackEvent', 'Inscription', 'newsletter', 'pied_de_page']);
_paq.push(['trackEvent', 'Inscription', 'compte', 'email']);
```

Sign-ups validated by double opt-in are confirmed only when the link in the email is clicked: the analytics tool measures the sign-up request, the email marketing tool counts the actual subscribers. Reconcile the two every month.

### WordPress

Versions: WordPress 6.4 and later.

- **Downloads**: PDFs in the media library are direct links to `/wp-content/uploads/…pdf`, so enhanced measurement and Matomo see them without any setting. Download management plugins that serve files through a URL with no extension require a manual event or the `matomo_download` class.
- **Newsletter**: most sign-up plugins (Mailchimp for WP, MailPoet, Brevo forms) offer a redirect to a confirmation page; track that page, or a JavaScript event if the plugin documents one.
- **Account creation**: WooCommerce and membership plugins trigger the `user_register` PHP action. Store a flag in user metadata, then push the event on the next page:

```php
// wp-content/themes/your-child-theme/functions.php
add_action('user_register', function (int $userId): void {
    update_user_meta($userId, '_pending_sign_up_event', 1);
});

add_action('wp_footer', function (): void {
    $userId = get_current_user_id();

    if (! $userId) {
        return;
    }

    if (! get_user_meta($userId, '_pending_sign_up_event', true)) {
        return;
    }

    delete_user_meta($userId, '_pending_sign_up_event');

    echo "<script>window.dataLayer = window.dataLayer || []; dataLayer.push({event: 'sign_up', method: 'email'});</script>";
});
```

### Laravel

Versions: Laravel 11 to 13.

Laravel fires the `Illuminate\Auth\Events\Registered` event on registration in the starter kits. Listen to it to set flashed data, read by the layout:

```php
// app/Listeners/FlashSignUpAnalyticsEventListener.php
namespace App\Listeners;

use Illuminate\Auth\Events\Registered;

class FlashSignUpAnalyticsEventListener
{
    public function handle(Registered $event): void
    {
        session()->flash('analyticsEvent', [
            'event' => 'sign_up',
            'method' => 'email',
        ]);
    }
}
```

Laravel's automatic event discovery registers this class. In the layout, the `@if(session('analyticsEvent'))` block described in [track conversions, forms and quote requests](https://checklist-seo-geo.com/en/tracking-analytics-setup/track-conversions-forms-quote-requests) pushes the event only once. For a sign-up without a redirect, use `session()->now()` in the response that displays the confirmation.

### Next.js

Versions: Next.js 15 and 16 (App Router).

Send the event from the client component once the sign-up action has succeeded:

```tsx
'use client';

import { sendGAEvent } from '@next/third-parties/google';

export function NewsletterForm() {
  async function handleSubmit(formData: FormData) {
    const response = await fetch('/api/newsletter', { method: 'POST', body: formData });

    if (! response.ok) {
      return;
    }

    sendGAEvent('event', 'newsletter_signup', { form_location: 'pied_de_page' });
  }

  return (
    <form action={handleSubmit}>
      <input type="email" name="email" required />
      <button type="submit">Sign up</button>
    </form>
  );
}
```

### Measure PDFs viewed without going through the site

For PDFs opened directly from a search engine or an AI assistant:

- **Search Console**: clicks and impressions per PDF URL in the Performance report.
- **Server logs**: count `200` requests on the files, separating bots from visitors. On Nginx:

```bash
grep -E '"GET [^"]+\.pdf' /var/log/nginx/access.log | grep -viE 'bot|crawler|spider' | awk '{print $7}' | sort | uniq -c | sort -rn | head -20
```

- **Return link**: add to each PDF a link to the matching HTML page, with UTM parameters (`utm_source=pdf&utm_medium=document&utm_campaign=catalogue-2026`), to measure the visits it sends back. See [use available UTM parameters](https://checklist-seo-geo.com/en/tracking-analytics-setup/use-available-utm-parameters).

> **Tip:** if a PDF receives many direct visits from Google or AI assistants, publish its content as an HTML page. The page is measurable, easier to cite and can offer the sign-up or the download.

## Common mistakes

- **Counting the click on “Sign up”** instead of the confirmation: every invalid address becomes a sign-up.
- **Adding a `file_download` tag in Tag Manager** when enhanced measurement already measures it: each download counts twice.
- **Marking every download as a key event**: a price list downloaded by your customers is not a conversion.
- **Using `sign_up` for the newsletter**: you mix subscribers and accounts, two very different commitments.
- **Sending the email address as a parameter** or in the confirmation URL: prohibited by Google Analytics policies.
- **Concluding that a PDF is not read** because GA4 shows nothing: direct entries on files escape the tag.

## Frequently asked questions

### Does GA4 automatically track PDF downloads?

Yes, if enhanced measurement is active with the File downloads option. GA4 then sends the file_download event when a visitor clicks a link on your site that points to a PDF or another common format. It does not see PDFs opened directly from Google or an AI assistant, nor downloads started by a JavaScript button or a URL with no extension.

### Which GA4 event should I use for a newsletter sign-up?

Google does not provide a recommended event specific to newsletters. Use a clear custom name such as newsletter_signup, or generate_lead if the sign-up has real commercial value. Reserve sign_up, a recommended event, for account creation. Send the event only after the server's confirmation, and reconcile the figure every month with the actual subscribers in your email marketing tool.

### How can I find out how many times a PDF is viewed from Google?

Open Search Console's Performance report and filter pages on the .pdf extension: you get the clicks and impressions of each file in Google. For all sources, including AI assistants and external links, analyze the server logs by counting successful requests on PDF files and excluding bots.

### Should a white paper download require a form?

It is a commercial choice, not a measurement requirement. A form produces contacts you can measure with generate_lead, but it reduces the number of readers, and search engine and AI assistant crawlers cannot read content placed behind it. Many sites publish an open HTML version and offer the full PDF version in exchange for an email address.

## Resources

- [Google Analytics Help: Enhanced measurement and `file_download`](https://support.google.com/analytics/answer/9216061?hl=en)
- [Google Analytics: Recommended events reference (`sign_up`, `generate_lead`)](https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag)
- [Matomo: JavaScript tracking guide (downloads)](https://developer.matomo.org/guides/tracking-javascript-guide)
- [Matomo: Create a goal](https://matomo.org/faq/reports/create-a-goal-in-matomo/)
- [Laravel: Authentication events](https://laravel.com/docs/authentication#events)
- [Google Search Central: Indexable file types](https://developers.google.com/search/docs/crawling-indexing/indexable-file-types?hl=en)

Next steps: [track purchases](https://checklist-seo-geo.com/en/tracking-analytics-setup/track-purchases) and [connect analytics to the CRM](https://checklist-seo-geo.com/en/tracking-analytics-setup/connect-analytics-crm-if-relevant).
