Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
ga-localstorage
Advanced tools
Readme
A JavaScript Google Universal Analytics snippet that uses localStorage
, when available, instead of HTML cookies.
Do it for the bytes.
The LocalStorage option is now officially supported by Google.
You should only use this script if all of the following are true:
the site you are tracking doesn't track users on other subdomains.
the site you are tracking is always served over https or always over http, never both/either.
you pretty much just track page views, users, and/or events (since that is all I've tested myself).
Another thing to note: this script changes the global ga
function to ct
. If you call ga
in your scripts to track events, make sure you update all your ga()
calls to ct()
calls!
Did you read the Important Caveats? Make sure you do that before you read any more.
npm install ga-localstorage --save
var analyticsSnippet = require("ga-localstorage")("UA-8675309-1");
<script>
and a </script>
right before </body>
.Read Google Async Analytics using LocalStorage for the back story.
Read Use localStorage for Google Analytics tracking when available #1444 for more fun HTML5 Boilerplate.
FAQs
Google's Universal Analytics async snippet using HTML5 `localStorage` instead of HTTP cookies.
The npm package ga-localstorage receives a total of 0 weekly downloads. As such, ga-localstorage popularity was classified as not popular.
We found that ga-localstorage 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.