← Back to team overview

dhis2-devs team mailing list archive

Google Analytics support on DHIS 2 v.2.26

 

Hi there,

I try to use Google Analytics UA (Universal Analytics) Key: UA-97xxxxxx-3
on my instance -  DHIS 2 v.2.26,
System > Server > Google Analytics (Universal Analytics) Key:
[image: Immagine incorporata 2]

I try to write:
1. only the Key name: *UA-97xxxxxx-3*
2. with quotation marks: *'**UA-97xxxxxx-3'*
3. all the script as defined by Google Analytics:
*<script>*
*
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){*
*  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
Date();a=s.createElement(o),*
*
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)*
*
})(window,document,'script','https://www.google-analytics.com/analytics.js
<https://www.google-analytics.com/analytics.js>','ga');*

*  ga('create', UA-97xxxxxx-3', 'auto');*
*  ga('send', 'pageview');*

*</script>*

None of these methods has generated statistics that I wanted. All other
sites on my Analytics account generate correctly the Google Analytics
statistics.

Can someone help me to use Google Analytics UA key on DHIS 2 ?

Thanks in advance
Antonia



*Eng. Antonia Bezenchek*
CIO - ICT Engineer
*InformaPRO S.r.l.* via Guido Guinizelli, 98/100, Roma 00152, Italy
tel. +39 06 5758926, fax +39  06 62207168, P.IVA IT08095781004
www.informapro.it - *Seguici su *LinkedIn
<https://www.linkedin.com/company/informapro>

PNG image