Commit 8361506a authored by Phil Hughes's avatar Phil Hughes

Merge branch 'support-string-piwik-website-ids' into 'master'

Supports Matomo/Piwik string website ID ("Protect Track ID" plugin)

Closes #61606

See merge request gitlab-org/gitlab-ce!28214
parents 6b2f4ea5 38635c64
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
(function() { (function() {
var u="//#{extra_config.piwik_url}/"; var u="//#{extra_config.piwik_url}/";
_paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', #{extra_config.piwik_site_id}]); _paq.push(['setSiteId', "#{extra_config.piwik_site_id}"]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})(); })();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment