Answer the question
In order to leave comments, you need to log in
How to set up a goal to download a file in Google Analytics?
There is a file on the site along the path site.ru/zayavka.doc .
How to set up a goal for clicking on a link (and, accordingly, downloading a file) in Google Analytics? It is very easy to set up in the metric, just specify that the url includes zayavka.doc.
Answer the question
In order to leave comments, you need to log in
It is necessary to configure the target through events .
When the user clicks on a link to a file, an event with the given label will be fired. It will be recorded in Google Analytics. Each such event can be configured as a target.
The setting here depends on how you installed the Google Analytics counter on the site. If through a call to analytics.js, then the event can be called from a link as follows :
onclick="ga('send', 'event', 'Links', 'Download', 'zayavka');"
If Google Analytics is invoked through a tag manager (GTM), then it 's different . If by calling gtag.js - thus .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question