• Resolved dwheditor

    (@dwheditor)


    Hi there, is there a way to show analytics yet on our users dashboard/page?

    I know there is an option to show views but as i don’t want that to show on the front end once it is deleted from that section it no longer showing in the backend for my paying users. Any help would be appreciated, thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Mahfuzul Alam

    (@mahfuz87)

    Hello @dwheditor

    Thank you for contacting us. Sorry, we do not have any analytics extension yet.

    There is a way to show the listing views on the dashboard page like this > https://prnt.sc/5zSkt-ZfNRA4
    If you want to achieve this please implement the following process.

    1. Please make sure to add the View filed on the listing form layout using the Directory Builder > https://prnt.sc/ZNIkKya60PEA
    2. Please implement the following code in the functions.php file of the child theme. If you are not using any child theme, please use any code snippet plugin and use the following custom code –
    add_action('directorist_dashboard_listing_th_6', function () {
    ?>
    	<th class="directorist-table-views">Views</th>
    <?php
    });
    
    add_action('directorist_dashboard_listing_td_6', function ($dashboard) {
    	$listing_id = get_the_ID();
    	$view_count = get_post_meta($listing_id, '_atbdp_post_views_count', true);
    	$view_count = $view_count ? $view_count : 0;
    ?>
    	<td class="directorist-table-views"><?php echo $view_count; ?></td>
    <?php
    });

    This process should show the listing views on the dashboard page.
    Please let me know if you need further assistance.

    Kind Regards

    Thread Starter dwheditor

    (@dwheditor)

    Perfect thank you so much for your help!

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

The topic ‘User/Author analytics’ is closed to new replies.