M
M
mihanickq2017-03-08 13:06:03
Search Engine Optimization
mihanickq, 2017-03-08 13:06:03

File download statistics?

The site has a link to download the catalog of the form https://website/createpdf/index/download/
When you click on it, the catalog file is downloaded, the user is not redirected anywhere.
Smart goals in GoogleAnalytics show createpdf/index/download (Goal value 4) is always zero, apparently because there is no such page and, accordingly, there is no analytics code on it.
Link shortening services like Goo.gl are also not an option, since outbound links, especially from the main one, will have a bad effect on SEO.
How can I still collect statistics on directory downloads by day?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Denisov, 2017-03-17
@mihanickq

Use Google event tracking .
Attach an onClick handler to the link to download the file, in which you place a line like:
ga('send', 'event', 'download', 'catalog');
In statistics, you will receive the number of events triggered.

J
Jacob, 2017-03-09
@Logrise

Google Analytics doesn't track clicks on download links by default unless a new page opens, unlike Metrica. You need to add an onclick event to the html code of the link, assign it the function of sending an event to the GA using the virtual page method or the event itself, and you will have everything.

M
Maxim Timofeev, 2017-03-08
@webinar

Target a download link and count clicks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question