Created
February 21, 2018 03:43
-
-
Save wilxsv/7f2470238141ec93d28124f76a6b37fa to your computer and use it in GitHub Desktop.
Redefinicion de extenciones para seguimiento en matomo
This file contains hidden or 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
<!-- Matomo --> | |
<script type="text/javascript"> | |
var _paq = _paq || []; | |
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ | |
_paq.push(['trackPageView']); | |
_paq.push(['enableLinkTracking']); | |
(function() { | |
var u="//tracking.prisma.sv/"; | |
_paq.push(['setTrackerUrl', u+'piwik.php']); | |
_paq.push(['setSiteId', '1']); | |
/*Aqui se definen los formatos de descarga agregar*/ | |
_paq.push(['setDownloadExtensions', "pdf|mp3|jpg"]); | |
_paq.push(['trackPageView']); | |
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); | |
})(); | |
</script> | |
/*https://developer.matomo.org/guides/tracking-javascript-guide#file-extensions-for-tracking-downloads*/ | |
<!-- End Matomo Code --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment