Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Analytics on authoring environment

Avatar

Level 3

Has anybody tried implementing Google analytics on authoring environment itself. Yes, sounds crazy. However as aem OOTB doesn't provide any information related to concurrent users and active logged in users, pages authored most etc.., thought why not implement GA on authoring environment. 

 

Any thoughts on how to implement.

1 Accepted Solution

Avatar

Correct answer by
Level 7

Hi @perfecci0nista ,

I'm agree with the colleagues which suggest you an other way to do this.

It depends on the version that you are using, but e.g. in 6.3 you can use the out of the box User Report (etc/reports/userreport) in order to get part of this information.

 

Anyway, if you want to get data by using GTM I think that you just only need to identify the call that need to be tracked (e.g. j_security_check for login, /editor.html for editing, and so on) and ask to the GTM team to track this. From your side you just only need to extend the cq.authoring clientlib in order to load the GTM scripts.

Mind that this could cause some performance issues in author, and my suggestion is to evaluate if it's something really necessary since (as already discussed) you can get this information also from report and logs.

 

Thanks,

Antonio 

View solution in original post

4 Replies

Avatar

Community Advisor

You can get most of this info from the logs i.e. access.log and audit.log. If you have SSO enabled you can also get most of this info from those logs as well eg: Okta logs.

Avatar

Correct answer by
Level 7

Hi @perfecci0nista ,

I'm agree with the colleagues which suggest you an other way to do this.

It depends on the version that you are using, but e.g. in 6.3 you can use the out of the box User Report (etc/reports/userreport) in order to get part of this information.

 

Anyway, if you want to get data by using GTM I think that you just only need to identify the call that need to be tracked (e.g. j_security_check for login, /editor.html for editing, and so on) and ask to the GTM team to track this. From your side you just only need to extend the cq.authoring clientlib in order to load the GTM scripts.

Mind that this could cause some performance issues in author, and my suggestion is to evaluate if it's something really necessary since (as already discussed) you can get this information also from report and logs.

 

Thanks,

Antonio 

Avatar

Level 3
Thank you for the suggestion. I will try adding GTM script first and monitor it closely if any performance hit.

Avatar

Employee Advisor

For data related to logged in users , you could simply fetch it from <host>:<port>/system/console/tokenmgr

 

For Page audits, Its stored under "/var/audit/com.day.cq.wcm.core.page/content/we-retail". You can query for events such as "pageModified" Or "pageDeleted" Or "pageAdded". The primary type of the node will be "

cq:AuditEvent

"