Title: Chuck Mac's Replies | WordPress.org

---

# Chuck Mac

  [  ](https://wordpress.org/support/users/chuckmac/)

 *   [Profile](https://wordpress.org/support/users/chuckmac/)
 *   [Topics Started](https://wordpress.org/support/users/chuckmac/topics/)
 *   [Replies Created](https://wordpress.org/support/users/chuckmac/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/chuckmac/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/chuckmac/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/chuckmac/engagements/)
 *   [Favorites](https://wordpress.org/support/users/chuckmac/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Sales By Location Report] Display the order value and location](https://wordpress.org/support/topic/display-the-order-value-and-location/)
 *  Plugin Author [Chuck Mac](https://wordpress.org/support/users/chuckmac/)
 * (@chuckmac)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/display-the-order-value-and-location/#post-9749971)
 * No, an order level breakdown is not possible with this plugin. That sounds like
   more of case for a full order export plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Sales By Location Report] Deprecated error message](https://wordpress.org/support/topic/deprecated-error-message/)
 *  Plugin Author [Chuck Mac](https://wordpress.org/support/users/chuckmac/)
 * (@chuckmac)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/deprecated-error-message/#post-9428916)
 * Should be fixed in the latest version (1.3.2)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Analytics for Cloudflare] Plugin won’t show all my domains](https://wordpress.org/support/topic/plugin-wont-show-all-my-domains/)
 *  Plugin Author [Chuck Mac](https://wordpress.org/support/users/chuckmac/)
 * (@chuckmac)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/plugin-wont-show-all-my-domains/#post-8787698)
 * Thanks for your feedback. This has been updated in the latest version of the 
   plugin (version 1.1).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Analytics for Cloudflare] Just a couple of suggestions…](https://wordpress.org/support/topic/just-a-couple-of-suggestions-1/)
 *  Plugin Author [Chuck Mac](https://wordpress.org/support/users/chuckmac/)
 * (@chuckmac)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/just-a-couple-of-suggestions-1/#post-7055026)
 * Thank you for the feedback.
 * I have added these enhancements to the list for the next development cycle.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Sales By Location Report] Missing CSS and JS](https://wordpress.org/support/topic/missing-css-and-js/)
 *  Plugin Author [Chuck Mac](https://wordpress.org/support/users/chuckmac/)
 * (@chuckmac)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/missing-css-and-js/#post-7017093)
 * Thank you for the report.
 * These files were not updated properly during the deployment process. I just pushed
   version 1.3.1 which has the correct library files in it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Sales By Location Report] Does Location mean Country or State/Province too?](https://wordpress.org/support/topic/does-location-mean-country-or-stateprovince-too/)
 *  Plugin Author [Chuck Mac](https://wordpress.org/support/users/chuckmac/)
 * (@chuckmac)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/does-location-mean-country-or-stateprovince-too/#post-5925733)
 * [@ponderinstuff](https://wordpress.org/support/users/ponderinstuff/) Thanks for
   your feedback. I do have plans to eventually add the state level. I don’t have
   a timetable for that at the moment.
 * I do not have any plans currently to add a city level – there is no map available
   for the software this uses that will go down to that level of detail.
 * I am not aware of any plugin that goes down to the city level. I do not see any
   others on the WordPress.org repository, but a quick search turned up this paid
   one which does appear to provide a report by state (I have never used it and 
   am not affiliated with it in any way so please do not take this as an endorsement):
 * [http://codecanyon.net/item/advanced-woocommerce-reporting-/12042129](http://codecanyon.net/item/advanced-woocommerce-reporting-/12042129)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Analytics for Cloudflare] Anyway to display analytics on a post or page](https://wordpress.org/support/topic/anyway-to-display-analytics-on-a-post-or-page/)
 *  Plugin Author [Chuck Mac](https://wordpress.org/support/users/chuckmac/)
 * (@chuckmac)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/anyway-to-display-analytics-on-a-post-or-page/#post-6785761)
 * Your code looks like it should work.
 * The direction for how to determine the zoneID on CloudFlare look like they are
   outdated. I poked around for a few minutes and can’t see an easy way to extract
   them from there.
 * If you have it linked up in your WordPress dashboard you can do a view source
   on the settings page… the `cmd_analytics_for_cloudflare_settings[domain]` dropdown
   box has all the zoneIDs in it.
 * ex:
 *     ```
       <select name="cmd_analytics_for_cloudflare_settings[domain]" data-dynamite-selected="true">
       		<option value="thisismyzoneid" selected="selected">domain.com</option>
       </select>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Analytics for Cloudflare] Anyway to display analytics on a post or page](https://wordpress.org/support/topic/anyway-to-display-analytics-on-a-post-or-page/)
 *  Plugin Author [Chuck Mac](https://wordpress.org/support/users/chuckmac/)
 * (@chuckmac)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/anyway-to-display-analytics-on-a-post-or-page/#post-6785721)
 * I pushed a new version (1.0.2) which has some new filters for the API settings.
   Specifically the domain is `cmd_analytics_for_cloudflare_set_api_domain`. The
   trick here is that this is the ZoneID key for the domain… not just the bare domain
   name.
 * I also played around for a few minutes trying to get the chart to display on 
   the front end. I was able to get it working with the following code in a template.
 *     ```
       //Need to include the dashboard widget class since that is typically only loaded on is_admin
       $plugin_file = WP_PLUGIN_DIR . '/analytics-for-cloudflare/includes/class-analytics-for-cloudflare-admin-dashboard.php';
       require_once( $plugin_file );
   
       //Create a new instance of the class
       $dashboard = new CMD_Analytics_For_Cloudflare_Admin_Dashboard();
       //Enqueue the chartJS styles / javascript.  Trick it into thinking we are on the dashboard index.php page
       $dashboard->enqueue_dashboard_scripts_styles('index.php');
       //Load up the chart!
       $dashboard->display_dashboard_widget();
       ```
   
 * Good luck!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Analytics for Cloudflare] Anyway to display analytics on a post or page](https://wordpress.org/support/topic/anyway-to-display-analytics-on-a-post-or-page/)
 *  Plugin Author [Chuck Mac](https://wordpress.org/support/users/chuckmac/)
 * (@chuckmac)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/anyway-to-display-analytics-on-a-post-or-page/#post-6785657)
 * I had never really thought about that use case when developing this (which is
   great!).
 * I will add some filter in and push a new release in a day or 2 so that the domain
   can be changed programmatically.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Analytics for Cloudflare] Anyway to display analytics on a post or page](https://wordpress.org/support/topic/anyway-to-display-analytics-on-a-post-or-page/)
 *  Plugin Author [Chuck Mac](https://wordpress.org/support/users/chuckmac/)
 * (@chuckmac)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/anyway-to-display-analytics-on-a-post-or-page/#post-6785623)
 * Thanks for trying out the plugin.
 * There is no “easy” way built in to display the statistics on the front end such
   as a shortcode. That said, the code should be reusable to build an extension 
   off of it that would display the data on the frontend.
 * Specifically the `display_dashboard_widget` function in includes/class-analytics-
   for-cloudflare-admin-dashboard.php.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Sales By Location Report] Latest Plugin Compatibility](https://wordpress.org/support/topic/latest-plugin-compatibility/)
 *  Plugin Author [Chuck Mac](https://wordpress.org/support/users/chuckmac/)
 * (@chuckmac)
 * [11 years ago](https://wordpress.org/support/topic/latest-plugin-compatibility/#post-6269380)
 * Thanks for the feedback.
 * Yes, I do plan on making future updates to the plugin… hoping to have one out
   shortly infact.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Sales By Location Report] Does Location mean Country or State/Province too?](https://wordpress.org/support/topic/does-location-mean-country-or-stateprovince-too/)
 *  Plugin Author [Chuck Mac](https://wordpress.org/support/users/chuckmac/)
 * (@chuckmac)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/does-location-mean-country-or-stateprovince-too/#post-5925407)
 * Thank you for the feedback.
 * Currently the report is by country only. I do see this is not prominently displayed
   so will update the description for this.

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