Track downloaded files google analytics kentico






















A property can group multiple websites that you want to track in one go. In each property, you can define one or more views. However unlikely it may seem, views have inpact on data upon retrieval. Bear in mind that once you set a filtered view, the historic data that have been filtered out cannot be retrieved later by adjusting the view. GA plugs into each website through a small JavaScript code snippet that you put into the markup of your pages. The snippet always contains a specific tracking ID that accounts traffic to a specific property explained above.

This tool lets you swap the tracking code snippet with a GTM snippet. It would be silly to reinvent the wheel and teach you details of GA in this article. It combines various forms of tuition like written text, videos, and hands-on practice with a mocked-up GA data. The course will take you just an hour or two, including most hands-on tasks.

This chapter will serve as a conversion table between the WA reports and their GA counterparts, telling you where you can find an alternative report in GA. The Countries report has two GA counterparts. The Registered users report does not have any counterpart report in GA.

This is because GA does not know anything about the user management features of Kentico. The Mobile devices report is covered by two GA reports. In WA, there also is a Search crawlers report. It displays visits made by search engine indexers. At the time of writing, GA did not provide any alternative report.

This will affect numbers in all filters in a given view. However, the Search engines report has no direct alternative in GA. I received few answers but not helpful at all.

Apparently Kentico only supports the tracking of file downloads for the CMS. File page type. The system can track file downloads as Page visit activities for files stored as pages of the CMS. File type in the content tree of a website. That means page attachments cannot be tracked by Kentico.

The only way to have documents tracked is to use the CMS. File page type and give it a physical place in your content tree. Which was out of the question in my case. ActivityLoggingScript Html. Like so:. In Kentico, we recommend managing cookies through cookie levels. When the application starts, you can register any cookie by its name either a first-party or a third-party one.

Each cookie is registered for a certain cookie level. When a new visitor arrives at the website, the default cookie level is used and cookies of that level are deployed to the browser. When the visitor gives a certain consent, additional cookies are allowed up to the cookie level bound to the given consent. Finally, when the visitor revokes a consent, the cookie level is lowered and all the respective cookies get automatically deleted by the default Kentico.

Mvc NuGet package. First, create two helper methods. RegisterCookie cookieName, CookieLevel. RegisterFeatures ApplicationBuilder. Current ; BundleConfig. RegisterBundles BundleTable. RegisterRoutes RouteTable. However, Google prepared another small catch for us.

Despite the fact that GA cookies, when deployed by the gtag. Since the requirements imposed by Google are non-standard, you should delete the cookies with a simple custom service that supplements the default Kentico functionality. AddYears -1 ; tempCookie. IsNullOrEmpty domain? Domain; Cookies. Equals cookieName, StringComparison.

By adding a duplicate cookie to the collection, the original cookie will get invalidated, thanks to the expiration date being set backwards. In the ApplicationConfig. RemoveCookie cookieName, ApplicationConfig. That's it!

The tracking snippets get added to the markup only when a visitor agrees to that. When they revoke their consent, the system forgets about the visitor. Collection of data is not only disabled through the property of the window object, as per Google's documentation. Also, the cookies are removed using a service. Now that you know how to introduce GA to your site, you can look forward to seeing the final parts in this series.

They will demonstrate how custom-tailored reports can be crafted in GA. You'll create two custom GA reports that display the same kind of information as what's in the Search engines and Invalid pages reports in Kentico Web Analytics.



0コメント

  • 1000 / 1000