Refactoring and documentation update necessary for GoogleAnalytics plugged to DE
GoogleAnalytics plugged to .Stat DE was first delivered in late Release 10.07.2018 (Github).
It will require some potential refactoring (to be confirmed during Dev review) in order to make this feature work with the current version of the DE and to make it configurable.
Once done, documentation for the setup and configuration needs to be written here.
Sadly, it seems that the previous documentation has been deleted from the former GitHub repository (no backup was found so far).
Reviewed requirements for the GoogleAnalytics setup with DE/VIEWER
-
Number of DE sessions per period -
Number of DE users per period -
Number of DE sessions per dataflow per period -
Number of DE users per dataflow per period -
Number of DE downloads (separately by unfiltered csv, filtered csv, filtered excel, .png) per period -
Number of DE downloads (separately by unfiltered csv, filtered csv, filtered excel, .png) per dataflow per period -
Number of DE shared tables/charts per period -
Number of DE shared tables/charts per dataflow per period -
Number of VIEWER views of shared tables/charts per period -
Number of VIEWER views of shared tables/charts per dataflow per period -
Number of VIEWER users per period
Update the application tab (feature enhancement) to meet the requirements
The existing configurable DE application name is enhanced in the visualization pages in order to also return the localized dataflow name in the web browser tab.
The current "app": "title": ".Stat Data Explorer"
is kept, but when I am on a visualization page (dataflow table view or chart view), then the title is prefixed with the localized dataflow name with the combination of [space]•[space]
separators.
Example
- my homepage title is
.Stat Data Explorer
- my search result page title is
.Stat Data Explorer
When I select the dataflow named "Unemployment Rate", then: - my visualisation page is Unemployment Rate • .Stat Data Explorer
- if I switch to French, then my visualisation page title is Taux de chômage • .Stat Data Explorer
For the site http://de-demo.siscc.org/ (http://de-staging-siscc.redpelicans.com/) use this GA tracking ID: UA-29060297-1
For the site http://de-qa-oecd.redpelicans.com/ use this GA tracking ID: UA-29060297-2
Global Site Tag (gtag.js)
This is the Global Site Tag (gtag.js) tracking code for this property. Copy and paste this code as the first item into the <HEAD> of every web page that you want to track. If you already have a Global Site Tag on your page, simply add the config line from the snippet below to your existing Global Site Tag.
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-29060297-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-29060297-1');
</script>
The Global Site Tag provides streamlined tagging across Google’s site measurement, conversion tracking and remarketing products – giving you better control while making implementation easier. By using gtag.js, you will be able to benefit from the latest dynamic features and integrations as they become available. Learn more
Google Tag Manager
Our free tool Google Tag Manager can help you add tags to your site if you have many analytics and tracking tags. Consider using Google Tag Manager if:
- You use multiple analytics and ad performance tracking tools that require site tags.
- Adding tags to your website slows down your ability to run marketing campaigns.
Learn how to get started with Google Tag Manager.