mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix so that google analytics script are cached
This commit is contained in:
parent
1dd4f03100
commit
ddeba41638
@ -7,7 +7,11 @@ export class Analytics {
|
||||
constructor(private $rootScope, private $location) {}
|
||||
|
||||
gaInit() {
|
||||
$.getScript('https://www.google-analytics.com/analytics.js'); // jQuery shortcut
|
||||
$.ajax({
|
||||
url: 'https://www.google-analytics.com/analytics.js',
|
||||
dataType: 'script',
|
||||
cache: true,
|
||||
});
|
||||
var ga = ((<any>window).ga =
|
||||
(<any>window).ga ||
|
||||
function() {
|
||||
|
Loading…
Reference in New Issue
Block a user