Skip to content

Audience filtering on non-existence of a tag.

Problem

How can I target new and existing users who do not have a specific tags?

Scenario: Existing users

This scenario is straight forward and behaves as expected.

1
2
3
4
Given I create a Guide with filters:
  - Tag Does Not Exist: TagName
When an existing user installs and opens the App
then the user must see the guide.

Scenario: New users

This scenario is not straight forward and does not behave as expected.

1
2
3
4
Given I create a Guide with filters:
  - Tag Does Not Exist: TagName
When an new user installs and opens the App
then the user must see the guide.

The caveat here is that new installs do not have any tags and hence always matches the guide.

Solution

The solution in this case is

  1. To use a string tag with a specific value (eg True/False,access/noaccess/someaccess)
  2. In your app use the Pointzi SDK tag api to create a string tag with a specific value

Example code for web sdk:

1
2
3
let key = "access";
let value = "false";
window.Pointzi.tag.string(key, value);

Scenario: New users and existing users with tag matching a specific string value

1
2
3
4
5
    Given I create a Guide with filters:
      - Tag Does Exist: TagName
      - Tag String Value Equal To: StringValue
    When an new user installs and opens the App
    then the user must see the guide.