Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
@meanie/angular-analytics
Advanced tools
An Angular wrapper service for Google Analytics
You can install this package using yarn
or npm
:
#yarn
yarn add @meanie/angular-analytics
#npm
npm install @meanie/angular-analytics --save
Include the script node_modules/@meanie/angular-analytics/release/angular-analytics.js
in your build process, or add it via a <script>
tag to your index.html
:
<script src="node_modules/@meanie/angular-analytics/release/angular-analytics.js"></script>
Add Analytics.Service
as a dependency for your app.
angular.module('App', [
'Analytics.Service'
])
.config(function($analyticsProvider, Config) {
$analyticsProvider.setEnabled(Config.ANALYTICS_ENABLED && Config.ANALYTICS_TRACKING_ID);
})
.run(function($rootScope, $analytics, Config) {
//Check if enabled
if ($analytics.isEnabled()) {
//Create site wide tracker
$analytics.create(Config.ANALYTICS_TRACKING_ID);
//On state changes, track page views
$rootScope.$on('$stateChangeSuccess', function() {
$analytics.track.pageview();
});
}
});
Please report any bugs, issues, suggestions and feature requests in the @meanie/angular-analytics issue tracker.
Pull requests are welcome! If you would like to contribute to Meanie, please check out the Meanie contributing guidelines.
This package has been kindly sponsored by Hello Club, an all in one club and membership management solution complete with booking system, automated membership renewals, online payments and integrated access and light control. Check us out if you happen to belong to any kind of club or if you know someone who helps run a club!
(MIT License)
Copyright 2016-2020, Adam Reis
FAQs
An Angular wrapper service for Google Analytics
We found that @meanie/angular-analytics 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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.