
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
piwik-react-router
Advanced tools
Piwik analytics component for react-router
npm install piwik-react-router --save
Simply create your instance with the same url
and siteId
as described in the piwik documentation and connect it to your history
object.
Starting with v2.0 react-router won't provide a default history. Why?.
var PiwikReactRouter = require('piwik-react-router');
var piwik = PiwikReactRouter({
url : 'your-piwik-installation.com',
siteId : 1
});
<Router history={piwik.connectToHistory(history)}>
<Route path="/" component={MyComponent} />
</Router>
If you're using react-router prior to v1.0 please head over to the react-router0.13.x branch.
For the url-option you can also include http://
or https://
in the beginning of the url, if you piwik installation is on ssl, but your react-site is not, or visa versa.
true
Link tracking to track outgoing and download links is enabled by default.
undefined
User ID to associate every request with a username or email. More information here: User ID
true
Updates the document title before adding a new page view as the title may changed during the route rendering. Make sure you call piwik.track
after React has rendered the <Handler />
to make this work correctly.
If you don't know how to update the title, check out the great react-document-title module.
false
By enabling this option occurring javascript errors will be tracked as a JavaScript Error
piwik event.
see http://davidwalsh.name/track-errors-google-analytics for further details
false
By enabling ignoreInitialVisit
it connects to the history without tracking the initial visit.
Adds a page view from a history Location if the path
changed.
path = location.pathname + location.search
Pushes the specified args to the Piwik tracker the same way as you're using the _paq.push(args);
directly. You can use this method as the low-level api to call methods from the Piwik API, track events or call custom functions.
Tracks the given error as a new Piwik Event for the given event name. If you don't specify any name here it will fallback to JavaScript Error
.
Adds a listener to the passed in history
and triggers track(location)
whenever the history changes.
Disconnects Piwik from a previous connected history. Returns whether it could successfully disconnect.
Piwik tracking is disabled for serverside rendering and all API methods are replaced with noop-functions so you don't have to worry about it.
FAQs
Piwik analytics component for react-router
The npm package piwik-react-router receives a total of 1,687 weekly downloads. As such, piwik-react-router popularity was classified as popular.
We found that piwik-react-router demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.