Google analytics measure direct pdf 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.

Asked 4 years, 9 months ago. Active 4 years, 9 months ago. Viewed 1k times. I wouldn't track pdf downloads as an event, but as a virtual page view. I have a CMS and I don't understand how to implement this solution. For ex. Improve this question. Do you want trigger a virtual pageview if someony click a download link? Add a comment. Active Oldest Votes. Improve this answer. Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Who is building clouds for the independent developer? Exploding turkeys and how not to thaw your frozen bird: Top turkey questions Featured on Meta.



0コメント

  • 1000 / 1000