@cameron_walter
To track PDF downloads with Google Analytics, follow these steps:
- Enable tracking for PDF downloads: Open your Google Analytics account and go to "Admin" settings. In the "View" column, click on "Goals" and then "+ New Goal" to set up a new goal for tracking PDF downloads.
- Set up your goal: In the Goal setup form, choose the "Custom" option and click "Continue".
- Name your goal: Give your goal a descriptive name (e.g., "PDF Downloads").
- Goal description: As this is a custom goal, you can leave this field blank or add a brief description if you prefer.
- Goal type: Select "Event" as the goal type.
- Goal details: In the "Event conditions" section, set the Category to "Downloads," Action to "click," and Label to ".pdf" (without the quotes). This ensures that Google Analytics tracks any PDF download as an event when users click on a download link.
- Value: Leave the value as 0, as PDF downloads typically do not have a monetary value associated with them.
- Enable funnels (optional): Funnels help you track the user journey leading to the PDF download. If you want to set up a funnel, toggle the switch to enable it. Specify the necessary steps users need to take before reaching the download page.
- Verify and save: Review the goal details and click "Save" to finalize your goal setup.
- Update your download links: In your website's HTML code, add the following code to each download link you want to track:
Download PDF
Replace "/path/to/your/file.pdf" with the actual file URL. This code will trigger the event tracking when a user clicks on the link.
Once implemented, Google Analytics will start tracking PDF downloads as events under the "Behaviour" section. You can access this data in the "Events" report, specifically under "Top Events" or by navigating to "Behaviour" > "Events" > "Top Events" > "Downloads".