Giter Club home page Giter Club logo

Comments (5)

relthyg avatar relthyg commented on June 6, 2024 1

We've added the <noscript> element in v2.5.1. Does this solve thise issue?

from piwik-bundle.

mpdude avatar mpdude commented on June 6, 2024

I think it would be great to have this included so our users don't need to remember this :)

Looking at the FAQ page you linked, there seem to be some parameters (rec and bots in particular) that would be nice to have as configuration values with sensible defaults.

Do you understand the importance of having rec set?

from piwik-bundle.

nwoetzel avatar nwoetzel commented on June 6, 2024

Thanks for the quick reply.
http://developer.piwik.org/2.x/api-reference/tracking-api
So it seems that without rec=0 there would be no tracking. I guess that it is there, so that if you no want to disable tracking (like in development mode) it would still generate the url, the browser loads it - but the piwik-server would ignore it. So you can easily disable tracking without removing the code...
In theory, I would go as far as to allow setting all HTTP API query parameters is wanted. And in the configuration, as you said, define sensible defaults (e.g. site_id, rec, api_v).
One could even take care of the rand=1285698456-0123456 that is suggested to include to prevent caching of requests. (I think the javascript tracking code does that by default)
Now that I think about it, having a second function
{{ piwik_code_api() }}
that just generates the
<img src="http://piwik-server.com/piwik.php?idsite=1&rec=1" style="border:0" alt="" /> portion would be cleanest. And using
{{ piwik_code(noscript=true) }}
would be very close to

{{ piwik_code() }}
<noscrip><p>{{ piwik_code_api() }}</p></noscript>

where noscript=true would pretty much just be a helper for the above. And this could be set in the configuration as default, so that no layout has to be changed.

from piwik-bundle.

TomaszGasior avatar TomaszGasior commented on June 6, 2024

It seems to be this bug can be closed sine last commits which solve this issue.

from piwik-bundle.

mpdude avatar mpdude commented on June 6, 2024

Thanks!

from piwik-bundle.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.