Socket
Socket
Sign inDemoInstall

ember-cli-google-analytics

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.3.0

app/mixins/google-pageview.js

17

CHANGELOG.md
# ember-cli-google-analytics Changelog
### 1.2.0
### v1.3.0
Adds support for [Display Advertising](https://support.google.com/analytics/answer/3450482) for both analytics.js and ga.js. Enable by setting the `displayFeatures` configuration to `true`, it is off by default.
* Added a mixin that can be included in the applications Router that will trigger the Google Analytics pageview when transitioning between routes.
* **[BREAKING]** Removed the initial pageview call inside of the inline Google Analytics tracking code in favor of using the new mixin.
### 1.1.0
### v1.2.0
Adds support for cookie-related settings: `cookieDomain`, `cookieName`, and `cookieExpires`. This applies to analytics.js only.
* Adds support for [Display Advertising](https://support.google.com/analytics/answer/3450482) for both analytics.js and ga.js. Enable by setting the `displayFeatures` configuration to `true`, it is off by default.
### 1.0.0
### v1.1.0
Initial release of the ember-cli-google-analytics addon
* Adds support for cookie-related settings: `cookieDomain`, `cookieName`, and `cookieExpires`. This applies to analytics.js only.
### v1.0.0
* Initial release of the ember-cli-google-analytics addon

@@ -42,3 +42,2 @@ 'use strict';

"" + config.globalVariable + "('create', '" + config.webPropertyId + "', " + gaConfig + ");",
"" + config.globalVariable + "('send', 'pageview');",
"</script>"

@@ -45,0 +44,0 @@ ];

{
"name": "ember-cli-google-analytics",
"version": "1.2.0",
"version": "1.3.0",
"scripts": {

@@ -5,0 +5,0 @@ "test": "echo \"Error: no test specified\" && exit 1"

@@ -21,2 +21,22 @@ # ember-cli-google-analytics

## Usage
Once configured, the Google Analytics tracking code will be injected into your index.html file. A mixin is provided for simple page view tracking inside of your Ember application. To use it, include it inside your `app/router.js` file:
```
import Ember from 'ember';
import config from './config/environment';
import googlePageview from './mixins/google-pageview';
var Router = Ember.Router.extend(googlePageview, {
location: config.locationType
});
Router.map(function() {
...
});
export default Router;
```
## Configuration

@@ -23,0 +43,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc