Special-case Goals and Funnels
This article covers how to handle:
Goals for downloads
To track a download as a goal, you will first need to configure the download link in one of two ways:
- as an event
- as a virtual page or screen view
If you configure the link as a virtual page or screen view, the overall page or screen view count for your website or app will be inflated by the number of clicks on that link. For this reason, we recommend using Event Tracking to configure download links.
- Website tracking: Universal Analytics (if using analytics.js) or Classic Google Analytics (if using ga.js)
- Mobile apps: Android or iOS.
Virtual page or screen view Destination Goal
To track the download link using a Destination Goal, you must modify your tracking code to create a virtual page or screen view for the download link. Once you create the virtual page or screen, you can supply that as the value for the Destination Goal. Learn more about how to track virtual page or screen views in our Developer Guides:
- Websites: Universal Analytics (if using analytics.js) or Classic Analytics (if using ga.js)
- Mobile apps: Android or iOS
Goals and Funnel steps on third-party sites
You can track a Goal or Funnel step page only if it contains the Google Analytics tracking code. However, in addition to tracking Goals and Funnels on your own site, you may want to track them on third-party sites. For example, you might want to track visitor activity on a 3rd-party shopping cart site and set Goals on those pages.
If you refer visitors to a third-party page on which you cannot alter the code, then you can track the outbound link as a Goal or Funnel step. For more information, see how to track outbound links.
If you refer visitors to a third-party page on which you can change the code, then you can track the visits to that page. For more information, see the Ecommerce section.