analytics
POST
https://hermeticor.com /v1/analytics/cohorts Weekly retention by first-event cohort
Request body
application/json
anchorEventstringrequiredreturnEventstringrequiredfromstringrequiredtostringrequiredweeksinteger{
"anchorEvent": "string",
"returnEvent": "string",
"from": "string",
"to": "string",
"weeks": 8
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/analytics/cohorts" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"anchorEvent":"string","returnEvent":"string","from":"string","to":"string","weeks":8}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"weeks": 0,
"cohorts": [
{
"cohort": "string",
"size": 0,
"retained": [
0
]
}
]
}Schema
weeksintegerrequiredcohortsobject[]requiredShow child parameters
cohortstringrequiredsizeintegerrequiredretainedinteger[]required4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/analytics/attribution/settings Code samples
cURL
curl -X GET "https://hermeticor.com/v1/analytics/attribution/settings" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"conversionEvent": "string",
"conversions": [
{
"label": "string",
"event": "string",
"valueProperty": "string",
"targetMinor": 0,
"folder": "string"
}
],
"touchBasis": "delivery",
"viewThrough": true,
"windowDeliveryHours": 0,
"windowClickHours": 0,
"windowOpenHours": 0,
"windowSmsClickHours": 0,
"model": "first_touch"
}Schema
conversionEventstringrequiredconversionsConversionsItem[]requiredShow child parameters
labelstringrequiredeventstringrequiredvaluePropertystringtargetMinorintegerfolderstringtouchBasisstringrequiredviewThroughbooleanrequiredwindowDeliveryHoursintegerrequiredwindowClickHoursintegerrequiredwindowOpenHoursintegerrequiredwindowSmsClickHoursintegerrequiredmodelstringrequiredPATCH
https://hermeticor.com /v1/analytics/attribution/settings Conversion event, touch windows and model. Applies to conversions recorded from now on.
Request body
application/json
conversionEventstringconversionsConversionsItem2[]Show child parameters
labelstringrequiredeventstringrequiredvaluePropertystringtargetMinorintegerfolderstringtouchBasisstringviewThroughbooleanwindowDeliveryHoursintegerwindowClickHoursintegerwindowOpenHoursintegerwindowSmsClickHoursintegermodelstring{
"conversionEvent": "string",
"conversions": [
{
"label": "string",
"event": "string",
"valueProperty": "string",
"targetMinor": 0,
"folder": "string"
}
],
"touchBasis": "delivery",
"viewThrough": true,
"windowDeliveryHours": 0,
"windowClickHours": 0,
"windowOpenHours": 0,
"windowSmsClickHours": 0,
"model": "first_touch"
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/analytics/attribution/settings" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"conversionEvent":"string","conversions":[{"label":"string","event":"string","valueProperty":"string","targetMinor":0,"folder":"string"}],"touchBasis":"delivery","viewThrough":true,"windowDeliveryHours":0,"windowClickHours":0,"windowOpenHours":0,"windowSmsClickHours":0,"model":"first_touch"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/analytics/revenue Attributed purchase revenue by campaign, flow, variant, node, channel or day
Parameters
fromstringqueryrequiredtostringqueryrequiredgroupBystringquerychannelstringquerygoalstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/analytics/revenue?from=<from>&to=<to>" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"groupBy": "string",
"rows": [
{
"key": "string",
"currency": "string",
"conversions": 0,
"revenueMinor": 0
}
]
}Schema
groupBystringrequiredrowsobject[]requiredShow child parameters
keystringrequiredcurrencystringrequiredconversionsintegerrequiredrevenueMinorintegerrequiredGET
https://hermeticor.com /v1/analytics/revenue/campaigns Attributed orders, revenue and messages sent per campaign (revenue per recipient)
Parameters
fromstringqueryrequiredtostringqueryrequiredlimitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/analytics/revenue/campaigns?from=<from>&to=<to>" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"campaignId": "string",
"currency": "string",
"conversions": 0,
"revenueMinor": 0,
"recipients": 0
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
campaignIdstringrequiredcurrencystringrequiredconversionsintegerrequiredrevenueMinornumberrequiredrecipientsintegerrequirednextCursorstringrequiredGET
https://hermeticor.com /v1/analytics/revenue/forms Revenue from buyers per signup form (the form they last submitted in the 30 days before ordering)
Parameters
fromstringqueryrequiredtostringqueryrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/analytics/revenue/forms?from=<from>&to=<to>" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"windowDays": 0,
"items": [
{
"formId": "string",
"currency": "string",
"conversions": 0,
"revenueMinor": 0
}
]
}Schema
windowDaysintegerrequireditemsobject[]requiredShow child parameters
formIdstringrequiredcurrencystringrequiredconversionsintegerrequiredrevenueMinornumberrequiredGET
https://hermeticor.com /v1/analytics/time-to-convert Parameters
fromstringqueryrequiredtostringqueryrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/analytics/time-to-convert?from=<from>&to=<to>" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"conversions": 0,
"medianHours": 0,
"buckets": [
{
"label": "string",
"count": 0
}
]
}Schema
conversionsintegerrequiredmedianHoursnumberrequiredbucketsobject[]requiredShow child parameters
labelstringrequiredcountintegerrequiredGET
https://hermeticor.com /v1/analytics/conversions Attributed conversion rows, filterable by profile, conversion and date
Parameters
limitintegerquerycursorstringqueryprofileIdstringquerygoalstringqueryfromstringquerytostringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/analytics/conversions" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"profileId": "string",
"ref": "string",
"eventId": "string",
"goalKey": "string",
"attributedKind": "string",
"attributedId": "string",
"jobId": "string",
"channel": "string",
"variantKey": "string",
"stepKey": "string",
"model": "string",
"windowHours": 0,
"valueMinor": 0,
"currency": "string",
"touchAt": "2024-01-01T00:00:00Z",
"at": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem87[]requiredShow child parameters
idstringrequiredprofileIdstringrequiredrefstringrequiredeventIdstringrequiredgoalKeystringrequiredattributedKindstringrequiredattributedIdstringrequiredjobIdstringrequiredchannelstringrequiredvariantKeystringrequiredstepKeystringrequiredmodelstringrequiredwindowHoursintegerrequiredvalueMinorintegerrequiredcurrencystringrequiredtouchAtstringrequiredatstringrequirednextCursorstringrequiredUpdated