checkAudienceMembership

❗️

Deprecated

This method is no longer recommended. Audience Manager is no longer available in the latest product version.

The checkAudienceMembership() method checks if a user belongs to a specific audience.

Syntax

await FlutterPiwikPro.sharedInstance.checkAudienceMembership('audienceId');

Parameters

audienceId (string, required)

The ID of the audience you want to check. You can find it in Audience Manager > Audiences.

Returns

A boolean value, true if the user is a member of the audience, false otherwise, instead of a string that describes the method and its parameters.

Examples

To check if a user belongs to an audience:

await FlutterPiwikPro.sharedInstance.checkAudienceMembership('92b32417-3467-439d-b160-8d4b0f8226e4');

Related methods