Comments (5)
We've added the <noscript>
element in v2.5.1. Does this solve thise issue?
from piwik-bundle.
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.
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.
It seems to be this bug can be closed sine last commits which solve this issue.
from piwik-bundle.
Thanks!
from piwik-bundle.
Related Issues (17)
- Rename "use_cacheable_tracking_script" option HOT 3
- Rename "Symfony2" to "Symfony"
- Support Twig 2.0 HOT 3
- Support for Symfony 4 / Flex HOT 3
- README: Configuration fix HOT 3
- Visits are counted twice HOT 3
- Deprecation in Symfony 4.3 HOT 2
- Rename to `WebfactoryMatomoBundle` (GH) and webfactory/matomo-bundle (Composer)
- Support Twig 3.0
- The child node "piwik_host" at path "webfactory_piwik" must be configured. HOT 4
- Enforce HTTPS for Matomo requests 🔐 HOT 3
- Symfony deprecation HOT 1
- Wrongly formed URL for the tracker HOT 1
- Current version of piwik-bundle can't be installed onto symfony 6.3 HOT 4
- Link with piwik/piwik-php-tracker HOT 2
- Support of multiple trackers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.