angulartics-chrome-platform-analytics

WebJar for angulartics-chrome-platform-analytics

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks ORM Data
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

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

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

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