Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

$cordovaGoogleAnalytics doesn't work #1383

Open
DevStarlight opened this issue Nov 23, 2016 · 3 comments
Open

$cordovaGoogleAnalytics doesn't work #1383

DevStarlight opened this issue Nov 23, 2016 · 3 comments

Comments

@DevStarlight
Copy link

Hi there.

Developing my app I just realice $cordovaGoogleAnalytics didn't work according to ngCordova documentation. Instead, window.ga was working as expected.

Is it possible that the new version of the official plugin and the use of window.ga instead of analytics makes it deprecated?.

@CodingCarlos
Copy link

Yap, I just found this. Is becouse of changes in v1.5 of the original plugin (https://github.com/danwilson/google-analytics-plugin). I am right now fixing this, and I will send a PR in some hours, if things don't get wrong ;)

@CodingCarlos
Copy link

Just seen that there is a PR in progress #1397 so, take the changes in that pr, and add it manually to you code until someone aprove it.

@ilovett
Copy link

ilovett commented Mar 5, 2017

For anyone else, I find the idea of manually pulling the PR mentioned to be a bit much for what GA does. You can just use the straight plugin methods by importing $window and just call directly $window.ga.trackView('Screen Title') directly instead of going through $cordovaGoogleAnalytics. Just ignore using the $cordovaGoogleAnalytics as it looks like this project has been pretty much abandoned.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants