Add support for Google Analytics with Content security policy headers
This commit is contained in:
parent
8bc6904c8a
commit
60e8fcc73e
1 changed files with 12 additions and 0 deletions
|
|
@ -11,3 +11,9 @@ _paq.push(['setTrackerUrl', matomoTrackingApiUrl]);
|
|||
_paq.push(['setSiteId', idSite]);
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
|
||||
var googleAnalytics = {{ .Site.GoogleAnalytics }};
|
||||
|
||||
var _gaq = window._gaq || [];
|
||||
_gaq.push(['_setAccount', googleAnalytics]);
|
||||
_gaq.push(['_trackPageView']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue