Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

GA shortcode

$
0
0

Replies: 0

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 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


Viewing all articles
Browse latest Browse all 59525

Trending Articles