Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added extra information for debugging the analytics code in your app.
  • Loading branch information
Willem Meints committed Mar 3, 2013
1 parent c5ec749 commit cba960a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ For convenience there's a base type `TrackableActivity` included in the assembly

All analytics calls from within an activity are tracked. If you have to make calls from other components, you may have to use `EasyTracker.Instance.Context = <myActivityInstance>`

Debugging
---------
If you're using the Google analytics SDK in your app and want to debug the logic to track activity in your app, you may have to modify the `ga_dispatchPeriod` parameter in the analytics.xml. By default the dispatch period is 30 minutes, this is however much longer than you want during debugging. So instead you can specify

<!-- Dispatch period is specified in seconds -->
<integer name="ga_dispatchPeriod">20</integer>

Make sure you remove the setting when you run in production mode. A shorter dispatch period costs extra battery and processor cycles, thus reducing the performance of the app.

More information
----------------
This readme file covers the basics. There's a lot more you can do. Check out the following sources for more information:
Expand Down

0 comments on commit cba960a

Please sign in to comment.