https://github.com/appfeel/analytics-google-demo
Demo project for Cordova/PhoneGap with Analytics
https://github.com/appfeel/analytics-google-demo
Last synced: about 2 months ago
JSON representation
Demo project for Cordova/PhoneGap with Analytics
- Host: GitHub
- URL: https://github.com/appfeel/analytics-google-demo
- Owner: appfeel
- License: mit
- Created: 2014-12-05T10:23:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-30T23:47:44.000Z (over 9 years ago)
- Last Synced: 2025-02-13T16:37:48.354Z (3 months ago)
- Language: JavaScript
- Size: 172 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Instructions for testing Cordova Analytics plugin:
- [Download zip](https://github.com/appfeel/analytics-google-demo/archive/master.zip) project or clone it via git CLI:
```
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
````