PHPackages                             sunnysideup/google-analytics-pdf-downloads - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. sunnysideup/google-analytics-pdf-downloads

ActiveSilverstripe-vendormodule[PDF &amp; Document Generation](/categories/documents)

sunnysideup/google-analytics-pdf-downloads
==========================================

Measure directly accessed PDF Downloads assets through Google Analytics .

1.0.0(1y ago)054[1 PRs](https://github.com/sunnysideup/silverstripe-google-analytics-pdf-downloads/pulls)BSD-3-ClauseScheme

Since Sep 18Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/sunnysideup/silverstripe-google-analytics-pdf-downloads)[ Packagist](https://packagist.org/packages/sunnysideup/google-analytics-pdf-downloads)[ RSS](/packages/sunnysideup-google-analytics-pdf-downloads/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (8)Versions (7)Used By (0)

Track Direct PDF Downloads with Google Analytics
================================================

[](#track-direct-pdf-downloads-with-google-analytics)

[![Build Status](https://camo.githubusercontent.com/10a9a29ae49a420b2b609693de892504af3ea4580bc7d13ba6655612d182a303/68747470733a2f2f7472617669732d63692e6f72672f73756e6e797369646575702f73696c7665727374726970652d676f6f676c652d616e616c79746963732d7064662d646f776e6c6f6164732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sunnysideup/silverstripe-google-analytics-pdf-downloads)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/331fa60773d7601260e0e054088bef989bcb0d5c0406755fdbf54f1f46e0291e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73756e6e797369646575702f73696c7665727374726970652d676f6f676c652d616e616c79746963732d7064662d646f776e6c6f6164732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sunnysideup/silverstripe-google-analytics-pdf-downloads/?branch=master)[![codecov.io](https://camo.githubusercontent.com/a797e1dad1fddbac54641c8ad3e99a582a1661c25d9c6ed911428dd4ad832846/68747470733a2f2f636f6465636f762e696f2f6769746875622f73756e6e797369646575702f73696c7665727374726970652d676f6f676c652d616e616c79746963732d7064662d646f776e6c6f6164732f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://codecov.io/github/sunnysideup/silverstripe-google-analytics-pdf-downloads?branch=master)

[![Latest Stable Version](https://camo.githubusercontent.com/dcda254cde0c926df6e43b993e5dfa865015bfe762cff777b877569c93ee3dd7/68747470733a2f2f706f7365722e707567782e6f72672f73756e6e797369646575702f676f6f676c652d616e616c79746963732d7064662d646f776e6c6f6164732f76657273696f6e)](https://packagist.org/packages/sunnysideup/google-analytics-pdf-downloads)[![License](https://camo.githubusercontent.com/aeab171086d03a762d342c2473196c9fe9068942667624c5a7c3540f7ba0a657/68747470733a2f2f706f7365722e707567782e6f72672f73756e6e797369646575702f676f6f676c652d616e616c79746963732d7064662d646f776e6c6f6164732f6c6963656e7365)](https://packagist.org/packages/sunnysideup/google-analytics-pdf-downloads)[![Monthly Downloads](https://camo.githubusercontent.com/2904ab0038d068353d90b9a5079cecd7ff64197581157be412a4b528b907f31d/68747470733a2f2f706f7365722e707567782e6f72672f73756e6e797369646575702f676f6f676c652d616e616c79746963732d7064662d646f776e6c6f6164732f642f6d6f6e74686c79)](https://packagist.org/packages/sunnysideup/google-analytics-pdf-downloads)

Documentation
-------------

[](#documentation)

This module is not compatible with other modules that overwrite the assets/.htaccess file.

After installing, add your google analytics code to your yml config like so:

```
---
Name: pdf_analytics
---
Sunnysideup\GAPDFDownloads\PDFDownloadController:
  analytics_code: 'G-0000000'
```

- [Developer Docs](docs/en/INDEX.md)
- [User Guide](docs/en/userguide.md)
- [API Docs](http://docs.ssmods.com/sunnysideup/google-analytics-pdf-downloads/classes.xhtml)

Requirements
------------

[](#requirements)

See [composer.json](composer.json) for details.

### Suggested modules

[](#suggested-modules)

See [composer.json](composer.json) for details.

Installation
------------

[](#installation)

```
composer require sunnysideup/google-analytics-pdf-downloads
```

### Configuration

[](#configuration)

In the `_config` folder you will find the `google-analytics-pdf-downloads.yml.example`file that shows options for the configuration of this module.

We recommend that you:

1. copy these `google-analytics-pdf-downloads.yml.example` files into your `app/_config` folder (where available - otherwise search for `private static $` in the module to see what can be configured)
2. remove the .example extension,
3. delete the lines you do not care about, and
4. adjust the configurations that you would like to use.

Contributing
------------

[](#contributing)

We welcome any contributions. See [CONTRIBUTING.md](CONTRIBUTING.md) for more details.

Paid assistance
---------------

[](#paid-assistance)

You can pay us to create an improved / adapted version of this module for your own projects. Please contact us if you like to find out more: [www.sunnysideup.co.nz](https://www.sunnysideup.co.nz). For example, we can write tests for this module.

Author
------

[](#author)

Sunny Side Up Ltd.

Looking for Silverstripe Modules?
---------------------------------

[](#looking-for-silverstripe-modules)

To find other modules, please visit [ssmods.com](https://ssmods.com/).

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance64

Regular maintenance activity

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~296 days

Total

3

Last Release

62d ago

Major Versions

1.0.0 → 5.x-dev2026-05-04

5.x-dev → 6.x-dev2026-05-04

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/167154?v=4)[Sunny Side Up](/maintainers/sunnysideup)[@sunnysideup](https://github.com/sunnysideup)

---

Top Contributors

[![sunnysideup](https://avatars.githubusercontent.com/u/167154?v=4)](https://github.com/sunnysideup "sunnysideup (7 commits)")[![S-GrabhamMadden](https://avatars.githubusercontent.com/u/27248899?v=4)](https://github.com/S-GrabhamMadden "S-GrabhamMadden (4 commits)")

---

Tags

pdfanalyticsdownloadgoogle-analyticsdirect access

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/sunnysideup-google-analytics-pdf-downloads/health.svg)

```
[![Health](https://phpackages.com/badges/sunnysideup-google-analytics-pdf-downloads/health.svg)](https://phpackages.com/packages/sunnysideup-google-analytics-pdf-downloads)
```

###  Alternatives

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.4k99.4M385](/packages/barryvdh-laravel-dompdf)[tecnickcom/tcpdf

Deprecated legacy PDF engine for PHP. Use instead tecnickcom/tc-lib-pdf.

4.5k109.8M580](/packages/tecnickcom-tcpdf)[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k83.4M564](/packages/mpdf-mpdf)[knplabs/knp-snappy

PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage.

4.5k72.4M62](/packages/knplabs-knp-snappy)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k36.7M158](/packages/spatie-browsershot)[silverstripe/cms

The SilverStripe Content Management System

5253.6M1.4k](/packages/silverstripe-cms)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
