Google analytics track file downloads






















The trigger will record an event in Google Analytics every time a visitor clicks your download link. Within the trigger, you can use a regular expression to fire an event based on your file extensions. This expression tells the trigger to fire if any of these extensions are present in your URLs.

So, if someone clicks a link on your site that contains. And that action will record a download event in Google analytics. Tracking downloads using GTM is a very straightforward process. And it's the industry standard for measuring this type of event. The MonsterInsights interface allows you to track file downloads automatically.

And they give you the option to use events or virtual page views. Tracking your downloads in MonsterInsights extremely easy to configure, and it's a comparable option to GTM. My client wishes to track PDF download. I remember you talking about that. The best way is to use Google Tag Manager. Alas, I am stuck with Google Analytics. So I need to set up Event Tracking I believe. Marco can't use GTM for his client's website. Manually adding code sounds complicated, but there is a tool that can help you create event tracking links.

Raven Tools has a form that allows you to build event tracking code for your download links. Their form will create two sets of tracking code. You can choose to use either line of code in your download URL.

You can copy either of these lines of code and embed them in the link for your downloadable file. This code will trigger a download event in Google Analytics anytime someone clicks your file link.

Autotrack is a javascript library built on top of the analytics tracking code analytics. In the event tracking code, you adjust the data-event-category to register based on your button click.

And you make the data-event-action equal your download. For this to work, you need to have Autotrack installed. You also need to have control over the metadata in your website's HTML. These tracking options might be starting to sound pretty advanced, but not every analytics solution is easy. That's why we started with the simpler solutions first. In general, the more difficult solutions provide more control.

But they take more time to implement. With that in mind, let's talk about how you custom code your site to track downloads in Google Analytics. Custom coding is the most advanced solution. It involves writing your own code. Then you have run tests using your own systems to make sure your code executes correctly. Here's an example of what your code would need to communicate with Google Analytics to track your downloads. This is not the actual code for this operation. This example is written using a computer science technique known as pseudocode.

If the other options we covered so far don't work, you can try to find a third-party tool to help you track your downloads. I know these libraries exist, or they did at one time. But, my searches to find a library to share did not produce any results.

It's possible these tools were made extinct by GTM. So, I don't have an example of a third-party tool that does automatic event tracking. The above configuration options require a visitor to click a link on your site to download a file. This applies to files that are directly linked from a blog, a search engine, an email, or any website.

Many organizations use 2 web analytics tools to get a complete picture of website activity. In this case, we recommend using Google Analytics in tandem with Angelfish Software. Angelfish shows the true number of downloads linked and direct , shows the websites that link directly to files on your site, and can upload this data as an event to your Google Analytics account.

For more information, visit the Angelfish Software website.



0コメント

  • 1000 / 1000