![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
ember-cli-google-analytics
Advanced tools
Plugin for ember-cli that injects Google Analytics tracking code into HTML content.
Plugin for ember-cli that injects Google Analytics tracking code into HTML content.
This plugin requires ember-cli version >= 0.0.47
To install simply run:
npm install --save-dev ember-cli-google-analytics
This plugin is intended to add Google Analytics tracking as an inline script. The ember-cli-content-security-policy addon that is included with ember-cli will prevent the execution of inline scripts.
A future version of this plugin is planned to add the tracking code as an additional JS file (much like ember-cli-inject-live-reload), but until then this plugin will not function out of the box with CSP installed.
This plugin uses the Ember CLI project's configuration as defined in config/environment.js
.
The tracking code will appear only if ENV.googleAnalytics.webPropertyId
is defined. For instance, to enable the tracking code in only the production environment:
if (environment === 'production') {
ENV.googleAnalytics = {
webPropertyId: 'UA-XXXX-Y'
};
}
webPropertyId
(Default: null
): the Web Property ID for the Google Web Property you wish to track.tracker
(Default: analytics.js
): The Google Tracker to use, can be either analytics.js
or ga.js
globalVariable
(Default: ga
): the global variable to use for the Google Analytics tracker object. This is ignored when the tracker
is ga.js
.v1.0.0
FAQs
Ember CLI addon that adds the Google Analytics tracking code
The npm package ember-cli-google-analytics receives a total of 121 weekly downloads. As such, ember-cli-google-analytics popularity was classified as not popular.
We found that ember-cli-google-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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.