
Tracking PDF documents
It is possible to track different document downloads with the counting pixel. The following table provides an overview about the supported types respectively their file extensions:
- .PDF - .WMA
- .DOC - .TXT
- .ZIP - .MDB
- .RAR - .VCF
- .ACE - .JPG/JPEG
- .XLS - .PSD
- .PPS - .GIF
- .ARJ - .EXE
- .TAR.GZ - .GZIP
- .MP3 - .MPEG
- .MP4 - .AVI
Carry out the following steps to track document downloads:
1. The pixel-code has to be integrated, as described in 'Integrating the pixel-code', in the website where the link to the document is located.
2. The following 'onClick' event must be added to the PDF document link:
| "onClick"-Event-Code: |
|---|
onClick="wiredminds.counter('file.pdf')" |
Note, the file extension (here „.pdf“) must be set!
The onClick event should be inserted in the link as shown:
| "onClick"-Event on a Link: |
|---|
<a href="<pfad>/<document.pdf>" onClick="wiredminds.counter('document.pdf')">Linkname</a> |
'Linkname' stands for the name of the link. This can also refer to a graphic.
The placeholders highlighted above are replaced by examples in the following sample code. This is how the code might appear:
| Example: |
|---|
<a href="/pfad/zum/pdf/document.pdf" onClick="wiredminds.counter('document.pdf')">A Document</a> |
3. Steps 1 and 2 are to be repeated for each document you want to include in the analysis.
Please note: One common mistake is to specify the hierarchy (page name, such as CUSTOMER/DE/de) in front of the name of the file. This does not have to be set manually here, but will automatically be placed in front of the document name by the pixel-code.
