curl --request POST \
--url https://{project_id}.edgee.app/_edgee/event \
--header 'Content-Type: application/json' \
--data '
{
"data_collection": {
"events": [
{
"type": "page",
"data": {
"name": "Page name",
"category": "category 1",
"title": "Page title",
"url": "https://demo.edgee.app/analytics-with-edgee.html",
"path": "/analytics-with-edgee.html",
"search": "?test=1",
"referrer": "https://demo.edgee.app/previous-page.html",
"keywords": [
"keyword1",
"keyword2"
],
"properties": {
"key": "value"
}
}
}
],
"context": {
"client": {
"timezone": "Europe/Paris",
"screen_width": 1512,
"screen_height": 982,
"screen_density": 2,
"user_agent_architecture": "arm",
"user_agent_bitness": "64",
"os_version": "15.1.1",
"user_agent_full_version_list": "Google Chrome;131.0.6778.109|Chromium;131.0.6778.109|Not_A Brand;24.0.0.0"
},
"campaign": {
"name": "<string>",
"source": "<string>",
"medium": "<string>",
"term": "<string>",
"content": "<string>",
"creative_format": "<string>",
"marketing_tactic": "<string>"
},
"page": {
"name": "Page name",
"category": "category 1",
"title": "Page title",
"url": "https://demo.edgee.app/analytics-with-edgee.html",
"path": "/analytics-with-edgee.html",
"search": "?test=1",
"referrer": "https://demo.edgee.app/previous-page.html",
"keywords": [
"keyword1",
"keyword2"
],
"properties": {
"key": "value"
}
},
"user": {
"user_id": "abc123",
"anonymous_id": "def345",
"properties": {
"key1": "value1",
"key2": "value2"
}
}
}
}
}
'{
"error": {
"type": "invalid_request_error",
"message": "Parameter error.",
"params": [
{
"param": "name",
"message": "Name is required."
}
]
}
}Collects a new Edgee event at the edge and forwards it to the configured components.
curl --request POST \
--url https://{project_id}.edgee.app/_edgee/event \
--header 'Content-Type: application/json' \
--data '
{
"data_collection": {
"events": [
{
"type": "page",
"data": {
"name": "Page name",
"category": "category 1",
"title": "Page title",
"url": "https://demo.edgee.app/analytics-with-edgee.html",
"path": "/analytics-with-edgee.html",
"search": "?test=1",
"referrer": "https://demo.edgee.app/previous-page.html",
"keywords": [
"keyword1",
"keyword2"
],
"properties": {
"key": "value"
}
}
}
],
"context": {
"client": {
"timezone": "Europe/Paris",
"screen_width": 1512,
"screen_height": 982,
"screen_density": 2,
"user_agent_architecture": "arm",
"user_agent_bitness": "64",
"os_version": "15.1.1",
"user_agent_full_version_list": "Google Chrome;131.0.6778.109|Chromium;131.0.6778.109|Not_A Brand;24.0.0.0"
},
"campaign": {
"name": "<string>",
"source": "<string>",
"medium": "<string>",
"term": "<string>",
"content": "<string>",
"creative_format": "<string>",
"marketing_tactic": "<string>"
},
"page": {
"name": "Page name",
"category": "category 1",
"title": "Page title",
"url": "https://demo.edgee.app/analytics-with-edgee.html",
"path": "/analytics-with-edgee.html",
"search": "?test=1",
"referrer": "https://demo.edgee.app/previous-page.html",
"keywords": [
"keyword1",
"keyword2"
],
"properties": {
"key": "value"
}
},
"user": {
"user_id": "abc123",
"anonymous_id": "def345",
"properties": {
"key1": "value1",
"key2": "value2"
}
}
}
}
}
'{
"error": {
"type": "invalid_request_error",
"message": "Parameter error.",
"params": [
{
"param": "name",
"message": "Name is required."
}
]
}
}This is a wrapper for the Edgee event object.
The data collection object includes details about context and events.
Show child attributes
The events array includes a list of events to collect at the edge.
This is a wrapper for the Edgee page event.
Show child attributes
The page event type
page The page event's data. This will be merged with the data_collection.context.page object.
Show child attributes
The page's name/title.
"Page name"
The page's category.
"category 1"
The page's title.
"Page title"
The page's full URL.
"https://demo.edgee.app/analytics-with-edgee.html"
The page's path (excluding protocol and hostname).
"/analytics-with-edgee.html"
The page's query string.
"?test=1"
The page's referrer.
"https://demo.edgee.app/previous-page.html"
The page's meta keywords.
["keyword1", "keyword2"]{
"name": "Page name",
"category": "category 1",
"title": "Page title",
"url": "https://demo.edgee.app/analytics-with-edgee.html",
"path": "/analytics-with-edgee.html",
"search": "?test=1",
"referrer": "https://demo.edgee.app/previous-page.html",
"keywords": ["keyword1", "keyword2"],
"properties": { "key": "value" }
}The context object includes details about client, campaign, page, and user.
Show child attributes
The context.client object includes details about the client device such as screen_width, screen_height, screen_density, and so on.
Show child attributes
The client's timezone
"Europe/Paris"
The client's screen width in pixels
1512
The client's screen width in pixels
982
The client's screen width in pixels
2
The client's architecture
"arm"
The client's bitness
"64"
The client's user agent model
The client's operating system version
"15.1.1"
The client's user agent full version list
"Google Chrome;131.0.6778.109|Chromium;131.0.6778.109|Not_A Brand;24.0.0.0"
{
"timezone": "Europe/Paris",
"screen_width": 1512,
"screen_height": 982,
"screen_density": 2,
"user_agent_architecture": "arm",
"user_agent_bitness": "64",
"os_version": "15.1.1",
"user_agent_full_version_list": "Google Chrome;131.0.6778.109|Chromium;131.0.6778.109|Not_A Brand;24.0.0.0"
}The context.campaign object includes details about the utm data parameters.
Show child attributes
The campaign name
The campaign source
The campaign medium
The campaign term
The campaign content
The campaign creative format
The campaign marketing tactis
The context.page object includes details about the page that generated this event, such as its URL, title, referrer, and so on.
Show child attributes
The page's name/title.
"Page name"
The page's category.
"category 1"
The page's title.
"Page title"
The page's full URL.
"https://demo.edgee.app/analytics-with-edgee.html"
The page's path (excluding protocol and hostname).
"/analytics-with-edgee.html"
The page's query string.
"?test=1"
The page's referrer.
"https://demo.edgee.app/previous-page.html"
The page's meta keywords.
["keyword1", "keyword2"]{
"name": "Page name",
"category": "category 1",
"title": "Page title",
"url": "https://demo.edgee.app/analytics-with-edgee.html",
"path": "/analytics-with-edgee.html",
"search": "?test=1",
"referrer": "https://demo.edgee.app/previous-page.html",
"keywords": ["keyword1", "keyword2"],
"properties": { "key": "value" }
}The context.user object includes details about the user that generated this event.
Show child attributes
The user's ID.
"abc123"
The user's anonymous ID.
"def345"
{
"user_id": "abc123",
"anonymous_id": "def345",
"properties": { "key1": "value1", "key2": "value2" }
}No response
Was this page helpful?