Returning test

Learn how to check if the user has accessed the application before.

This test checks whether the user is returning, that is, whether they have accessed the application before.

To determine if a user is a returning visitor, this test checks whether the user has more than one visit, which is equivalent to the following condition:

user's stats' sessions > 1

Since visits are tracked automatically, this test requires no additional tracking beyond the regular integration.

Syntax

This test has the following syntax:

/*<user>*/ is returning

To negate the test, you can write:

/*<user>*/ is not returning

Parameters

These are the supported parameters:

user

The user to check whether they are returning.

Examples

Here is how you can check whether a user has visited the application before:

user is returning

You can also check whether the user is a new visitor as follows:

user is not returning