cancel
Showing results for 
Search instead for 
Did you mean: 
intapiuser
Community Team Member
Community Team Member
Plugin Overview
This plugin registers every page view from your Sisense instance to your Google Analytics account. https://analytics.google.com
Configuration
  • You must specify your Google Analytics "tracking ID" by editing the main.js file.
  • By default, page tracking includes cross session / device tracking using the page viewers' Sisense internal user id.  This can be disabled by editing the main.js file.
Design Options
This plugin is a wrapper for analytics.js. Review the Google Analytics developer guide for full details. https://developers.google.com/analytics/devguides/collection/analyticsjs
If you have multiple environments such as development I have found two approaches to segregate tracking information.
  1. Utilize a different Google Analytics "tracking ID" for each environment
  2. Update the Sisense branding "pageTitle" value to include a suffix that indicates the environment.  For example "My Analytics Application - DEV". This would allow you to segment the page view within Google Analytics. This requires the option/license to brand your Sisense installation.
Installation Instructions
  1. Download the plugin here  
  2. Extract googleAnalytics_v20170810.zip to your Sisense installations plugin directory.  This usually located "C:\Program Files\Sisense\PrismWeb\plugins"
  3. Modify the main.js file as directed in the Configuration Section above.  By default, this file is located at "C:\Program Files\Sisense\PrismWeb\plugins\googleAnalytics\main.js".
  4. Restart IIS to register the new plugin.
Support
This plugin has been tested with Sisense version 6.6.1.13002.  This plugin comes with no warranty and you use it at your own risk.  If you have issues, share your experiences on this forum for community support.
Revisions
20170822 - Replace ajax call to get internal user id with prism variable reference
20170810 - Initial Release
Rate this article:
Comments
cglowe
8 - Cloud Apps
8 - Cloud Apps

For anyone still looking at this plug-in, it uses a deprecated Google Analytics version (UA) which no longer sends data to Google.  You can replace the code in main.js with the following to update the plug-in with the current Google version, GA4 (replace 'G-TAG' with your tracking tag):

prism.run(["$filter", function($filter) {
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','G-TAG');

prism.on("apploaded", function (e, args) {

window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-TAG');
});
}]);

DRay
Community Team Member
Community Team Member

Thank you for the update @cglowe!

Version history
Last update:
‎02-21-2024 12:05 PM
Updated by:
Contributors