isAnonymizationOn

The isAnonymizationOn() method checks whether a user is marked as anonymous or non-anonymous.

Syntax

((PiwikApplication) getApplication()).getTracker().isAnonymizationOn();
(application as PiwikApplication).tracker.isAnonymizationOn

Returns

Whether a user is marked as anonymous or non-anonymous.

Format: True: is anonymous. False: is non-anonymous.

Type: Boolean

Examples

To check whether a specific user is anonymous or non-anonymous:

((PiwikApplication) getApplication()).getTracker().isAnonymizationOn();
(application as PiwikApplication).tracker.isAnonymizationOn

Related methods