Querying Website Visitors

Create meaningful fields to surface high-intent accounts in Pocus Playbooks.

🍪

Proceed here after your team has installed the Pocus Snippet.

Setup

In the "Account" or "Company" object in the workspace, under "Settings," you need to select the field called the "Domain" field. This will allow us to match incoming requests to your data.

Queries

daysAgo is an integer between 1 and 30, indicating how many days in the past to look back.

path is a substring in the URL path indicating what path we should match on


website_visitor_total_visits

This pocus trait is the number of loads that occur.

Syntax:

{{ pocus:website_visitor_total_visits([daysAgo], '[path]') }}

website_visitor_unique_countries

This pocus trait will give a comment-separated list of unique countries codes that visited

{{ pocus:website_visitor_total_visits([daysAgo], '[path]') }}

Possible Values Link


website_visitor_unique_roles

This pocus trait will give a comment-separated list of unique jobs roles that visited.

Possible values Link


website_visitor_unique_seniority

This pocus trait will give a comment-separated list of unique senior titles that visited

Possible Values Link


website_visitor_seniority_visits

This pocus trait will give a number of visits by senior titles


Examples:

I want to know all visits to my pricing page in the last 30 days

{{ pocus:website_visitor_total_visits(30, '/pricing') }}


I would like to know if any visits to my new feature page exist.

{{ pocus:website_visitor_total_visits(30, '/new-feature-announcement') }}


I want to know if anyone with a senior title visited my pricing page

{{ pocus:website_visitor_unique_seniority(30, '/pricing') }}