Clicks Data

This data set contains click events associated with lists of the company's account.

How much data is retained?

This data set will contain 7 days’ worth of data starting from the most recent data refresh. Data is refreshed once per day. For example, if you are looking at the data set on 7/18, it will contain data from 7/11 to present.

What data can be pulled?

Column NameTypeNullableDefaultDefinition
ACTIVITY_NAMEVARCHAR(4000)TRUENULLThe campaign name that is correlated to the click
ACTIVITY_TYPEVARCHAR(16777216)TRUENULLType of campaign or activity the click is associated with. See here for a list of activity types.
ACTIVITY_IDVARCHAR(255)TRUENULLVibes unique identifier for the campaign that associated with the click
CLICK_AT_TTZTIMESTAMP_TZ(9)TRUENULLThe date timestamp when a click occurred. This timestamp will be in the time zone of the company.
CLICK_IDVARCHAR(50)TRUENULLVibes unique identifier for this click
COMPANY_KEYVARCHAR(50)TRUENULLVibes unique identifier used to identify a company that is associated with the click
DW_CREATED_ATTIMESTAMP_TZ(9)TRUENULLThe date timestamp that indicates when the row was created in Vibes data warehouse. The time zone is central time for North America customers and UTC for European Customers
EXTERNAL_PERSON_IDVARCHAR(16777216)TRUENULLA person identifier that is set by you, usually in conjunction with a CRM
FIRST_CLICKNUMBER(38,0)TRUENULLFlag- Indicates if this was the first click on the URL
FIRST_DEVICE_CLICKNUMBER(38,0)TRUENULLFlag- Indicates if this was the first click on the URL by the mobile phone
LONG_URLVARCHAR(2048)TRUENULLLong URL that was shortened.
MESSAGE_IDVARCHAR(16777216)TRUENULLThe Vibes identifier for the message the click is associated with
PERSON_KEYVARCHAR(40)TRUENULLVibes unique identifier for each person record in the mobile database
PHONE_NUMBERVARCHAR(255)TRUENULLThe mobile phone number of the individual who clicked
PHONE_NUMBER_E164_FORMATVARCHAR(255)TRUENULLThe mobile phone number of the individual that clicked in E.164
SHORT_DOMAINVARCHAR(255)TRUENULLDomain that the shortened URL was created on. Example: vbs.cm.
SHORT_KEYVARCHAR(50)TRUENULLURI of the shortened URL.
USER_AGENT_HEADERVARCHAR(16777216)TRUENULLThe first 255 characters of the browser user-agent header value.
PERSON_IDINTTRUENULLLEGACY: integer person_id for use with legacy Public APIs
PERSON_UIDVARCHAR(40)TRUENULLLEGACY: UID for use with legacy Data Sharing integrations
COMPANY_UIDVARCHAR(50)TRUENULLLEGACY: UID for use with legacy Data Sharing integrations
CLICK_UIDVARCHAR(50)TRUENULLLEGACY: UID for use with legacy Data Sharing integrations
MESSAGE_UIDVARCHAR(16777216)TRUENULLLEGACY: UID for use with legacy Data Sharing integrations
ACTIVITY_UIDVARCHAR(255)TRUENULLLEGACY: UID for use with legacy Data Sharing integrations

Sample Query

–- A query that will pull clicks from yesterday
SELECT
PERSON_KEY
,EXTERNAL_PERSON_ID
,PHONE_NUMBER
,ACTIVITY_ID
,ACTIVITY_NAME
,LONG_URL
,DW_CREATED_AT 
FROM CLICKS
WHERE CAST(DW_CREATED_AT AS DATE) >= CAST(DATEADD(day,-1, CURRENT_DATE()) AS DATE)
AND CAST(DW_CREATED_AT AS DATE) < CAST(CURRENT_DATE() AS DATE)