Skip to content

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. 

  1. Session and Pageviews
  2. Top Devices
  3. New Vs. Returning Visitors
  4. Most Visited Pages
  5. 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:

BASH
composer require vijaysoftware/ginsights

Add this widget to config/statamic/cp.php in the widget section

PHP
[
    '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.

ginsights1

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.

ginsights acclogin

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

auth3

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

property id

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:

   {{ ginsightsgtag }}
Now the GA tracking code will automatically get inserted into the Statamic webpage.

GInsights Screenshots

screenshot 1
screenshot 2

[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”]

Back To Top
Vijay Software
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.