GInsights Plugin Documentation & Installation
Ginsights is a Statamic plugin that provides an insight into Google Analytics data within the statamic dashboard. The plugin is easy to install in a website that is running a Statamic content management system.
The plugin integrates itself to the dashboard, where the user can review the traffic on various reports.
- Session and Pageviews
- Top Devices
- New Vs. Returning Visitors
- Most Visited Pages
- Top Referrals
How to Install
Installation is simple. You can search for this addon in the Tools > Addons
section of the Statamic control panel and click install, or run the following command from your project root:
composer require vijaysoftware/ginsights
Add this widget to config/statamic/cp.php in the widget section
[
'type' => 'dashboard',
'days' => 30,
'width' => 100,
],
Authenticate Google Analytics with GInsights
After installing the GInsights plugin a widget will be displayed on the statamic dashboard, Click on the “Click here” button to authorize your analytics account.

You will now be taken to a screen that will let you pick which Google Account you want to sign in with. Make sure to sign in to the account that you used to make your Google Analytics property.

Next, click the Allow button to give GInsights access to your Google Analytics data.

In the dropdown, find your website and then click on Submit button to view Analytics data.

Inserting GA Tracking code
The analytics tracking code for the selected property will be appended to the pages if you paste the tag to the template file either in the header or footer as given below:
GInsights Screenshots


[betterdocs_category_grid post_counter=”true” show_icon=”true” masonry=”true” column=”3″ posts_per_page=”5″ nested_subcategory=”true” terms=”term_ID, term_ID” terms_orderby=”” terms_order=”” multiple_knowledge_base=”” kb_slug=”” title_tag=”h2″ orderby=”” order=”” ]
[betterdocs_faq_list_modern groups=”group_id” class=”” group_exclude=”group_id” faq_heading=”Frequently Asked Questions”]