angulartics-google-analytics

WebJar for angulartics-google-analytics

Лицензия

Лицензия

MIT
Категории

Категории

Angular Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

angulartics-google-analytics
Последняя версия

Последняя версия

0.4.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

angulartics-google-analytics
WebJar for angulartics-google-analytics
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/angulartics/angulartics-google-analytics

Скачать angulartics-google-analytics

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angulartics-google-analytics/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angulartics-google-analytics</artifactId>
    <version>0.4.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angulartics-google-analytics/
implementation 'org.webjars.bower:angulartics-google-analytics:0.4.0'
// https://jarcasting.com/artifacts/org.webjars.bower/angulartics-google-analytics/
implementation ("org.webjars.bower:angulartics-google-analytics:0.4.0")
'org.webjars.bower:angulartics-google-analytics:jar:0.4.0'
<dependency org="org.webjars.bower" name="angulartics-google-analytics" rev="0.4.0">
  <artifact name="angulartics-google-analytics" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angulartics-google-analytics', version='0.4.0')
)
libraryDependencies += "org.webjars.bower" % "angulartics-google-analytics" % "0.4.0"
[org.webjars.bower/angulartics-google-analytics "0.4.0"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.bower : angulartics jar [1.2.1,2)

Модули Проекта

Данный проект не имеет модулей.

angulartics-google-analytics

NPM version NPM downloads Bower version Dependencies status MIT license Join the Slack chat Build Status

Google Analytics plugin for Angulartics.

Install

First make sure you've read installation and setup instructions for Angulartics.

Then you can install this package either with npm or with bower.

npm

npm install angulartics-google-analytics

Then add angulartics.google.analytics as a dependency for your app:

require('angulartics')

angular.module('myApp', [
  'angulartics',
  require('angulartics-google-analytics')
]);

Please note that core Angulartics doesn't export the name yet, but it will once we move it into the new organization.

bower

bower install angulartics-google-analytics

Add the <script> to your index.html:

<script src="/bower_components/angulartics-google-analytics/dist/angulartics-ga.min.js"></script>

Then add angulartics.google.analytics as a dependency for your app:

angular.module('myApp', [
  'angulartics',
  'angulartics.google.analytics'
]);

Changes in the Google Analytics snippet

The snippet code provided by Google Analytics does an automatic pageview hit, but this is already done by Angulartics (unless you disable it) so make sure to delete the tracking line:

      ...
      ga('create', 'UA-XXXXXXXX-X', 'none'); // 'none' while you are working on localhost
      ga('send', 'pageview');  // DELETE THIS LINE!
    </script>

Done. Open your app, browse across the different routes and check the realtime GA dashboard to see the hits.

Documentation

Documentation is available on the Angulartics site.

Settings

Module settings are done via the $analyticsProvider.settings.ga property. The following are GA-specific properties:

  • transport (Default: undefined) - sets the transport property for the ga function call. See the GA Transport Documentation for more information how to properly set this value. This should be a string.

Development

npm run build

License

MIT

org.webjars.bower

angulartics

Analytics for AngularJS applications.

Версии библиотеки

Версия
0.4.0
0.3.0
0.2.1
0.1.4
0.1.3
0.1.1