• Resolved Christian Clark

    (@christianmclark92)


    Hi,

    I’m looking to create a customized Welcome page for my WP-admin dashboard. So that when I login, the first thing I see are things such as weekly, daily, or monthly statistical data.

    General Stats seen here: https://gyazo.com/69dfe4c78b2f0883e22321e794780355

    Is it possible to take this same data from Analytify -> Dashboard, and move it to WP-admin -> Dashboard page?

    I’ve already created a custom admin-page that serves as my welcome page, I’m just trying to figure out how I’d take the stats from the analytify dashboard page and move them to a different area within the dashboard.

    Any thoughts?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Its amazing that you have already created an admin-page that serves as welcome page, then you just need to use Analytify’s shortcodes to create a matching General Stats section. However, it requires your HTML/CSS skills to make a replicating page.

    You can generate shortcodes via the Analytify’s shortcode generator that you can find on single post/page. Shortcodes generator only works with classic editor for now.

    If you have any further question, feel free to ask.

    Thank you.

    Thread Starter Christian Clark

    (@christianmclark92)

    Hi,

    I’ve taken the shortcodes generated by Analytify’s insert to page/post widget and I’ve placed them within my custom admin dashboard page.

    However, the issue is the display of the statistics themselves.

    See here: https://i.gyazo.com/6ff009896ba9fec377f3dca2fac2e039.png

    The core issue is that on the Analytify -> Dashboard page, it displays data perfectly the way that a user should see it. Especially with the pie charts and %’s for bounce rate ect… However, I don’t believe the shortcodes that are produced within the page/post are capable of recreating that level of detail.

    I’m fairly sure CSS can assist with the design itself to an extent, but if possible i’d rather just take the general stats area itself and move it.

    What I’ve been attempting to do over the last 3-4 hours is create a function that displays the Analytify -> Dashboard ‘General Stats’ section, in attempt to convert it into a Shortcode, that can be called within my Custom Admin Page area.

    I’ve gotten this far..

    Code Snippet: https://www.codepile.net/pile/4qWPdrlQ

    As you can see from my sloppy attempt, I’ve taken the code found at: /wp-content/plugins/analytify-analytics-dashboard-widget/views/admin – > general-stats.php

    and I’ve translated it into my functions file. This would work, however I need to define what ($current, $stats, $new_returning_stats) is within my function, and I don’t where or how to start that process.

    I feel like I’m close, but I’m sort of just winging it at this point.

    Do you have any suggestions?

    • This reply was modified 5 years, 2 months ago by Christian Clark. Reason: bold text
    Plugin Author Adnan

    (@hiddenpearls)

    You probably needs to call those functions directly from your custom dashboard that we are using to call from shortcodes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display General Stats on Dashboard Homepage’ is closed to new replies.