Comments (3)
Hey,
Yes you should be able to. You should ask for Internet permission though (If using Android), and then jsut include the Angularytics JS before your app, add the module of the dependency, include Analytics Script in your HTML and that's it. Just like any regular webpage!
Thanks for suing it!
from angularytics.
thanks.
I'm new to google analytics. Is this right?
I can't see any output at console.
<script src="http://www.google-analytics.com/analytics.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'XXXXXXX', 'XXXXXXX');
ga('send', 'pageview');
</script>
<script src="../../components/angularytics/dist/angularytics.js"></script>
app.config(['AngularyticsProvider',
function(AngularyticsProvider){
AngularyticsProvider.setEventHandlers(['Console', 'Google']);
}
]).run(['$rootScope', 'promiseTracker','Angularytics', function($rootScope, promiseTracker, Angularytics){
$rootScope.loader = promiseTracker('loader');
Angularytics.init();
}])
from angularytics.
You should use GoogleUniversal (as you're using ga not _gaq).
Also, you should set the XXX to the Analytics value of your account.
from angularytics.
Related Issues (20)
- .run-module-injection not working HOT 1
- Problem with routing after installing Angularytics HOT 1
- A way to disable auto trackPageView for soft 404 HOT 1
- Basic ng-click event?
- How to run in cordova/phonegap app? HOT 9
- Not Stated in GA setup as Mobile App or Website
- Compatibility with cookie consent
- Multiple directives asking for new/isolated scope HOT 1
- Bump version HOT 1
- Grunt test produces errors
- Run Angularytics only in production environment HOT 4
- AngularyticsProvider.disablePageViewTracking is not a function HOT 2
- Set tracking ID under config HOT 1
- User ID Setting HOT 2
- Error: ga is not deined HOT 5
- Request: New point release with the latest changes HOT 1
- Unknown provider: AngularyticsGoogleHandlerProvider HOT 1
- trackerName
- Unable to track events HOT 1
- Enable Support multiple GA Trackers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angularytics.