How to exclude self-service in Google Analytics on iPhone?

I use the Google Analytics SDK for iOS for event traffic and page views. It works great.

When I code / debug an application, I don’t want Google Analytics to traffic my events or pageviews because they are useless. So, is there a way to exclude self-service on the iPhone using the Google Analytics iOS SDK?

Thank.

+3
source share
2 answers

What I do for Google Analytics, I have a separate account identifier for live applications and for debugging.

, plist. , , .

+2

#ifndef , . __DEBUG__, :

#ifndef __DEBUG__

//code to start analytics tracking

#endif

, / .

+1

All Articles