log files online marketing

Ayoub Ag. asked on July 29, 2015 16:14

Hi everybody,

I activated the online marketing on my kentico v7 site, everything work perfect, but i noticed that this module generate a lots of log file each minute on this path ~/App_Data/CMSModules/WebAnalytics, i disabled all web analytic's logs on the site manager but it still generate logs, essentially : * landingpage_150724_1523.log * pagenotfound_150724_1333.log * pageviews_150724_1523.log * exitpagecandidate_150724_1523.log * browsertype_150724_1523.log * visitfirst_150724_1523.log

Any suggestion to avoid those log?

Thank you

Correct Answer

Richard Šefr answered on July 30, 2015 09:11

Hi, those logs aren't just for the sake of logging but they are a crucial part of Web analytics.

Every time a user of your site makes a notable action worth logging into Web analytics, the system creates a log file for that type (landing page, page view, etc.). The actions/information is aggregated for all users of that particular minute into a log file of the given type (for example - all page views for the 23rd minute for all your users would be in pageviews_150724_1523.log).

These files are then processed by Kentico into your database by a global scheduled task 'Process analytics log' every minute. You can then see the information in your Web analytics reports.

Without the log files the power of Web analytics isn't used to its full extend.

If you see that the files are starting to pile up (the scheduled task can't process as much logs as they are being created), then it's a sign, that your server might be under a heavy load and all its resources are currently depleted.

If you would like to stop Kentico from creating those files (making Web analytics much less powerful) you can disable it in Site manager » Settings » On-line marketing » Web analytics by unchecking 'Enable web analytics' option.

If you'd like to stop getting information about the type you've mentioned, you can uncheck 'Track landing pages', 'Track invalid pages', 'Track page views' etc. In case you've already did this and the log are still being created, this might be bug - in that case I'd check hotfix releases that might have already addressed this.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Ayoub Ag. answered on July 30, 2015 14:37

Hi Richard,

firstly I would like to thank you for all the details you provided, indeed there was an error in the scheduled task 'Process analytics log' , I had to uncheck "Use external service" option, and then all the data stored in log files was transferred to the DB.

Thank you

0 votesVote for this answer Mark as a Correct answer

Richard Šefr answered on July 30, 2015 15:14

You're welcome. Glad to help. :)

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.