Comments (7)
So there is just this part that is added to the normal tracker right:
_paq.push(["setCustomVariable", 1, "error404", "1", "page"]);
from developer-documentation.
See 8398982
from developer-documentation.
@mnapoli the call to _paq.push(["setCustomVariable", 1, "error404", "1", "page"]);
should appear just before trackPageView
because setCustomVariable decorates the request and track* functions send the request.
from developer-documentation.
My bad, I fixed this, here is the tracking code that is online now:
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["setCookieDomain", "*.piwik.org"]);
_paq.push(["setCustomVariable", 1, "error404", "1", "page"]);
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
function track() {
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://demo.piwik.org/";
_paq.push(["setTrackerUrl", u+"piwik.php"]);
_paq.push(["setSiteId", "36"]);
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
})();
}
if (window.addEventListener) { window.addEventListener("load", track, false); }
else if (window.attachEvent) { window.attachEvent("onload",track); }
else {
track();
}
</script>
<!-- End Piwik Code -->
from developer-documentation.
👍
from developer-documentation.
I noticed that this uses a custom variable to track the error, whereas http://piwik.org/faq/how-to/faq_60/ recommends tweaking the page title to contain the error message and referrer.
Which way is better (why?) and should one of both be fixed?
from developer-documentation.
@mpdude it's legitimate request. do you mind opening an issue on piwik/piwik and we'll discuss there
from developer-documentation.
Related Issues (20)
- Wrong reference to Region Code at ISO 3166-2 format HOT 1
- Make the search bar of developer.matomo.org search the contents of the site
- Default cookie prefix _pk_ not shown correctly on documentation website
- Update Documentation to Replace "Piwik" with "Matomo" HOT 1
- Improve the Matomo developer getting started guide HOT 2
- API pivotBy and pivotByColumn HOT 6
- Bug in Glossary
- UI Tests - fonts for 'REPLACEMENT CHARACTER' � (`U+FFFD`) is DejaVu HOT 1
- Clarify behaviour of using both matomoAsyncInit and _paq.push()
- Clarification Needed: Differentiating Event URL, Action URL, and Page URL HOT 2
- List of Events: Information Missing?
- Misleading sentence dealing with the use of segments with the Matomo API Reporting HOT 1
- Display unique visitors on custom dimensions when range is different than day
- Use OpenAPI standard for API documentation HOT 1
- Goal missing parameters
- Misleading documentation when it comes to custom dimension at the action level along with goals
- Product view parameters are missing within the HTTP Tracking API documentation HOT 1
- Enrich the developer API reporting documentation by adding a description of the format_metrics parameter
- Detail how the visits parameter has to be structured
- Code block text color contrast is not accessible
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.
from developer-documentation.