Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use modern tracking code #2

Closed
Findus23 opened this issue Dec 9, 2017 · 2 comments
Closed

Use modern tracking code #2

Findus23 opened this issue Dec 9, 2017 · 2 comments

Comments

@Findus23
Copy link

Findus23 commented Dec 9, 2017

Hi,

As this extension seems to be used by quite a few people, it may be useful to upgrade it to the latest piwik tracking code:

<!-- Piwik -->
<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="//piwik.example/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', '1']);
    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>
<!-- End Piwik Code -->
@mnapoli
Copy link
Owner

mnapoli commented Dec 10, 2017

👍 feel free to send a pull request.

@j0k3r
Copy link
Collaborator

j0k3r commented Jun 24, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants