Hi,
We are on 2.9.1. We are want to use the JS code to populate two idsites. The first below is to an
individual site and the second is the an "all" site. In other words, each individual sites we want to track
have there own individual site and all sites have the second block of JS code. Our problem is, that nothing
is being recorded on the "all" group, the second one. We changed the variable _paq to _paq2 in the second
group, because IE gave an error about duplicate variable being declared. Below is the code. Any ideas what
we should be doing?
Thanks,
Douglas
<html>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["setCookieDomain", "*.devwww.gpc.edu"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//piwik.gpc.edu/piwik/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 50]);
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>
<noscript><p><img src="//piwik.gpc.edu/piwik/piwik.php?idsite=50" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
<!-- Piwik -->
<script type="text/javascript">
var _paq2 = _paq2 || [];
_paq2.push(["setCookieDomain", "*.devwww.gpc.edu"]);
_paq2.push(['trackPageView']);
_paq2.push(['enableLinkTracking']);
(function() {
var u="//piwik.gpc.edu/piwik/";
_paq2.push(['setTrackerUrl', u+'piwik.php']);
_paq2.push(['setSiteId', 51]);
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>
<noscript><p><img src="//piwik.gpc.edu/piwik/piwik.php?idsite=51" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
</html>
We are on 2.9.1. We are want to use the JS code to populate two idsites. The first below is to an
individual site and the second is the an "all" site. In other words, each individual sites we want to track
have there own individual site and all sites have the second block of JS code. Our problem is, that nothing
is being recorded on the "all" group, the second one. We changed the variable _paq to _paq2 in the second
group, because IE gave an error about duplicate variable being declared. Below is the code. Any ideas what
we should be doing?
Thanks,
Douglas
<html>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["setCookieDomain", "*.devwww.gpc.edu"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//piwik.gpc.edu/piwik/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 50]);
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>
<noscript><p><img src="//piwik.gpc.edu/piwik/piwik.php?idsite=50" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
<!-- Piwik -->
<script type="text/javascript">
var _paq2 = _paq2 || [];
_paq2.push(["setCookieDomain", "*.devwww.gpc.edu"]);
_paq2.push(['trackPageView']);
_paq2.push(['enableLinkTracking']);
(function() {
var u="//piwik.gpc.edu/piwik/";
_paq2.push(['setTrackerUrl', u+'piwik.php']);
_paq2.push(['setSiteId', 51]);
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>
<noscript><p><img src="//piwik.gpc.edu/piwik/piwik.php?idsite=51" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
</html>