angulartics-chrome-platform-analytics

WebJar for angulartics-chrome-platform-analytics

License

License

MIT
Categories

Categories

Github Development Tools Version Controls Angular User Interface Web Frameworks ORM Data
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

github-com-paulhitz-angulartics-chrome-platform-analytics
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

angulartics-chrome-platform-analytics
WebJar for angulartics-chrome-platform-analytics
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/paulhitz/angulartics-chrome-platform-analytics

Download github-com-paulhitz-angulartics-chrome-platform-analytics

How to add to project

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

Dependencies

compile (4)

Group / Artifact Type Version
org.webjars.bower : angulartics jar [1.0.3,1.1)
org.webjars.bower » chrome-platform-analytics jar [1.3.0,1.4)
org.webjars.bower : bootswatch-dist jar cosmo
org.webjars.bower : angular jar [1.5.0,1.6)

Project Modules

There are no modules declared in this project.

angulartics-chrome-platform-analytics

NPM version Bower version MIT license

Chrome Platform Analytics plugin for Angulartics.

(Chrome Platform Analytics is a Javascript library supporting the use of Google Analytics from Chrome Platform Applications)

Please see the Chrome Platform Analytics wiki for more information.

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-chrome-platform-analytics

Then add angulartics-chrome-platform-analytics as a dependency for your app:

require('angulartics')

angular.module('myApp', [
  'angulartics',
  require('angulartics-chrome-platform-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-chrome-platform-analytics

Add the <script> to your index.html:

<script src="/bower_components/angulartics-chrome-platform-analytics/dist/angulartics-chrome-platform-analytics.min.js"></script>

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

angular.module('myApp', [
  'angulartics',
  'angulartics.chrome.platform.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.

Development

npm run build

License

MIT

Versions

Version
0.2.0