Title: Monitoring frontend
Last modified: July 18, 2019

---

# Monitoring frontend

 *  Resolved [premagraphic](https://wordpress.org/support/users/premagraphic/)
 * (@premagraphic)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/monitoring-frontend/)
 * Hello, thanks for your work.
    Can Simple History monitoring the activity in frontend
   for logged users? for example, monitoring the pages viewed or the clicks in links?
   Do you have any suggestions? Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [eoinlennon](https://wordpress.org/support/users/eoinlennon/)
 * (@eoinlennon)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/monitoring-frontend/#post-11856513)
 * Yes, It would be really good to have a shortcode that you could add to a page
   and then see it being tracked as an event in the reports.
 * I have a recipe website and I really would like to see what users looked at what
   recipes.
 *  [eoinlennon](https://wordpress.org/support/users/eoinlennon/)
 * (@eoinlennon)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/monitoring-frontend/#post-11856568)
 * Hi [@premagraphic](https://wordpress.org/support/users/premagraphic/)
    I found
   the answer deeper into the Support forum a bit. Just add this to your function.
   php file:
 *     ```
       // Log page views by non-admin users
       add_action('wp_footer', function() {
           // Do not log admins
           if (current_user_can('edit_users')) {
               return;
           }
   
           // Log only page views
           if (is_page()) {
               apply_filters('simple_history_log_info', 'A user viewed the page "{page_title}"', [
                   'page_title' => get_the_title()
               ]);
           }
       });
       ```
   
    -  This reply was modified 6 years, 7 months ago by [eoinlennon](https://wordpress.org/support/users/eoinlennon/).
 *  Plugin Author [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * (@eskapism)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/monitoring-frontend/#post-11888459)
 * Thanks [@eoinlennon](https://wordpress.org/support/users/eoinlennon/) for finding
   and posting the snippet!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Monitoring frontend’ is closed to new replies.

 * ![](https://ps.w.org/simple-history/assets/icon.svg?rev=3225008)
 * [Simple History – Track, Log, and Audit WordPress Changes](https://wordpress.org/plugins/simple-history/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-history/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-history/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-history/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-history/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-history/reviews/)

## Tags

 * [monitoring](https://wordpress.org/support/topic-tag/monitoring/)

 * 3 replies
 * 3 participants
 * Last reply from: [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/monitoring-frontend/#post-11888459)
 * Status: resolved