question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

  initializeApp() {
    this.platform.ready().then(() => {
      // Okay, so the platform is ready and our plugins are available.
      // Here you can do any higher level native things you might need.
      StatusBar.styleDefault();
      Splashscreen.hide();

      GoogleAnalytics.startTrackerWithId('UA-0000000000-0')
         .then(() => {
           console.log('Google analytics is ready now');
           // Tracker is ready
           // You can now track pages or set additional information such as AppVersion or UserId
           GoogleAnalytics.setAllowIDFACollection(true);
         })
         .catch(e => console.log('Error starting GoogleAnalytics', e));

    });

  }

not work with me use this plugin

try with emulator android e web serve

Error starting GoogleAnalytics cordova_not_available

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:25

github_iconTop GitHub Comments

1reaction
victorsosacommented, Mar 9, 2017

ionic serve will never work; the api only work in the emulator or device

second: you should check the android development env, to see if the GoogleAnalytics api is installed, so it can be used in the emulator.

0reactions
victorsosacommented, Apr 6, 2017

please follow issue #388

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the difference between it doesn't work for me. and ...
(2) It doesn't work for me means 1. a particular method/way of doing something does not work for the person 2. something is...
Read more >
I really don't want to work. Is there something wrong with me?
When I tell my family I don't wanna work they call me “lazy and unambitious” . I always want to have part time...
Read more >
prepositions - Doesn't work + on/in/with
Seems to me that it isn't the meaning of "work" you need help with, it is the words on, in and with. Work...
Read more >
That doesn't work for me
When something like "it doesn't work for me" might be used is when several people are being asked simultaneously if a date or...
Read more >
it doesn't work to me or it doesn't work for me?
it doesn't work for me is the most popular phrase on the web. More popular! it doesn't work for me. 10,800,000 results on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found