Title: GA shortcode
Last modified: January 22, 2022

---

# GA shortcode

 *  [Matta Cib](https://wordpress.org/support/users/matta-cib/)
 * (@matta-cib)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/ga-shortcode/)
 * Hello,
    I’m looking for a plugin which allows free (!) usable shortcodes both
   on frontend-pages as well as in PHP-widgets. I have read the article on [https://help.10web.io/hc/en-us/articles/360017852692-Publishing-Google-Analytics-Widget](https://help.10web.io/hc/en-us/articles/360017852692-Publishing-Google-Analytics-Widget)
   but as far as I understood the plugin only offers it’s own widget to display 
   GA-data om the frontend, right? What I want to do is to use the values of total
   visitors, yesterdays visitors, todays visitors and current visitors within my
   own PHP-widget. Data should be fetched by something like <?php $a = do_shortcode(“[
   your_shortcode_for_all_visitors_of_the_site]”); … ?> Is that possible? Thanks
   a lot for your kind response. Kind regards Matta
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fga-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘GA shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wd-google-analytics.svg)
 * [10WebAnalytics](https://wordpress.org/plugins/wd-google-analytics/)
 * [Support Threads](https://wordpress.org/support/plugin/wd-google-analytics/)
 * [Active Topics](https://wordpress.org/support/plugin/wd-google-analytics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wd-google-analytics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wd-google-analytics/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Matta Cib](https://wordpress.org/support/users/matta-cib/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/ga-shortcode/)
 * Status: not resolved