Skip to content

appfeel/analytics-google-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instructions for testing Cordova Analytics plugin:

git clone https://github.com/appfeel/analytics-google-demo.git AnalyticsTest
  • Add cordova-plugin-analytics plugin to the project:
cd AdmobAdsTest
cordova plugin add cordova-plugin-analytics
```

- Add platforms to the project:
```
cordova platform add ios android
```

Place your UA-XXXXXX-X in `www/js/index.js`:

```javascript
receivedEvent: function (id) {
    // ...
    analytics.startTrackerWithId('YOUR-ID-HERE'); // <-- Replace with your Google Analytics tracking code
    // ...
}
  • Emulate the application:
cordova emulate android
cordova emulate ios

About

Demo project for Cordova/PhoneGap with Analytics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published