Skip to content

Commit

Permalink
Add missing path parameter in Server-Side docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstyl authored and adriaandotcom committed Dec 2, 2023
1 parent 61bfa77 commit 228df64
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion _docs/55_events/50_server-side.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Page view data uses the same endpoint, structured like this:
"type": "pageview",
"hostname": "example.com",
"event": "pageview",
"path": "/page-name",
"ua": "User Agent"
}
```
Expand All @@ -45,6 +46,10 @@ Page view data uses the same endpoint, structured like this:

To send test data, use the following cURL command:

Data should appear on your dashboard within minutes. You can always [export the raw latest data](/export-data) from our dashboard, or use the [Events Explorer](/events-explorer) to find your events.

### Testing events

```bash
curl -X POST -H "Content-Type: application/json" -d '{
"type": "event",
Expand All @@ -57,7 +62,17 @@ curl -X POST -H "Content-Type: application/json" -d '{
}' https://queue.simpleanalyticscdn.com/events
```

Data should appear on your dashboard within minutes. You can always [export the raw latest data](/export-data) from our dashboard, or use the [Events Explorer](/events-explorer) to find your events.
### Testing page views

```bash
curl -X POST -H "Content-Type: application/json" -d '{
"type": "pageview",
"hostname": "mobile-app.example.com",
"event": "pageview",
"path": "/my-page-name",
"ua": "Your User Agent"
}' https://queue.simpleanalyticscdn.com/events
```

## Additional data fields

Expand Down

0 comments on commit 228df64

Please sign in to comment.