Link opened

Learn how to check if a user has opened a specific link.

This expression checks whether a user has clicked on a specific link based on link opened event.

Syntax

The basic syntax for this expression is:

user has opened link /*<url>*/

You can optionally include the article for better readability:

user has opened a link /*<url>*/

The negation of the expression can be expressed as:

user has not opened link /*<url>*/

You can refine the expression with criteria, quantifiers, and time windows:

user has opened link /*<url>*/ /*<criteria>*/ /*<quantifier>*/ /*<window>*/

Parameters

These are the supported parameters:

Event properties

The following event properties can be used within criteria expressions:

path

The path of the URL.

query

The query parameters of the URL.

anchor

The anchor of the URL.

Examples

You can check whether a user has opened a link:

user has opened a link "croct.com"

Or check if they have not opened a link:

user has not opened a link "croct.com"

You can also add criteria, such as specifying a path:

user has viewed a page with url "croct.com" with path "/signup"

Or specifying a query string like ?key=value:

user has viewed a page with url "croct.com" with property key of query "value"

You can also check how many times a link was opened:

user has opened a link "croct.com" exactly 3 times

You can even filter by time, such as checking if the link was opened yesterday:

user has opened a link "croct.com" yesterday

Combine criteria, counts and time windows in one expression:

user has opened a link "croct.com" with path "/signup" exactly 2 times today