-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace matomo tracking with new code from OSPO instance
- Loading branch information
1 parent
e4a2ffb
commit 835025e
Showing
2 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
var idSite = 4; | ||
var matomoTrackingApiUrl = 'https://analytics.ossupstream.org/matomo.php'; | ||
|
||
var _paq = window._paq = window._paq || []; | ||
_paq.push(['setTrackerUrl', matomoTrackingApiUrl]); | ||
_paq.push(['setSiteId', idSite]); | ||
var _paq = window._paq = window._paq || []; | ||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ | ||
_paq.push(['trackPageView']); | ||
_paq.push(['enableLinkTracking']); | ||
_paq.push(['enableLinkTracking']); | ||
(function() { | ||
var u="//route-default-test-mscherer-matamo.apps.ospo-osci.z3b1.p1.openshiftapps.com/"; | ||
_paq.push(['setTrackerUrl', u+'matomo.php']); | ||
_paq.push(['setSiteId', '2']); | ||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; | ||
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); | ||
})(); |