Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contents/docs/ai-observability/collect-user-feedback.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The survey will begin with a thumbs up/down question. Toggle on **Ask follow-up
alt="LLM trace survey creation"
/>

For more customization you can edit this survey post-creation, or create a [new survey](https://app.posthog.com/surveys). However, complex surveys may not work with our `useThumbSurveys` hook and require manual event capture.
For more customization you can edit this survey post-creation, or create a [new survey](https://app.posthog.com/surveys). However, complex surveys may not work with our `useThumbSurvey` hook and require manual event capture.

Click **Create & continue** to create your survey and view implementation instructions.

Expand Down
2 changes: 1 addition & 1 deletion contents/docs/ai-observability/link-session-replay.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const response = await fetch('/api/chat', {
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
message: userInput,
sessionId: posthog.getSessionId()
sessionId: posthog.get_session_id()
})
})
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func main() {
posthog.Config{
Endpoint: "<ph_client_api_host>",
PersonalApiKey: "your feature flags secure API key", // Optional, but much more performant. If this token is not supplied, then fetching feature flag values will be slower.
DefaultFeatureFlagsPollingInterval: time.Minute * 5 // time.Duration // Optional. Defaults to 5 minutes.
DefaultFeatureFlagsPollingInterval: time.Minute * 5, // time.Duration // Optional. Defaults to 5 minutes.
// NextFeatureFlagsPollingTick: func() time.Duration {} // Optional. Use this to sync polling intervals between instances. For an example see: https://github.com/PostHog/posthog-go/pull/36#issuecomment-1991734125
},
)
Expand Down
2 changes: 1 addition & 1 deletion contents/docs/integrate/_snippets/install-unity.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ For more control, initialize PostHog in your game's startup script:
using PostHogUnity;
using UnityEngine;

public class GameManager : Monobehavior
public class GameManager : MonoBehaviour
{
void Start()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ headers = {
payload = {
"api_key": "<ph_project_token>",
"event": "your_event_name",
"distinct_id": "distinct_id_of_your_user,
"distinct_id": "distinct_id_of_your_user",
"properties": {
"$feature/feature-flag-key": "variant-key" # Replace feature-flag-key with your flag key. Replace 'variant-key' with the key of your variant
}
Expand Down Expand Up @@ -503,7 +503,7 @@ headers = {
payload = {
"api_key": "<ph_project_token>",
"event": "feature_flag_called",
"distinct_id": "distinct_id_of_your_user,
"distinct_id": "distinct_id_of_your_user",
"properties": {
"$feature_flag": "feature-flag-key",
"$feature_flag_response": "variant-name"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ You can configure the `feature_flag_request_timeout_ms` parameter when initializ
```js
posthog.init('<ph_project_token>', {
api_host: '<ph_client_api_host>',
defaults: '<ph_posthog_js_defaults>'
defaults: '<ph_posthog_js_defaults>',
feature_flag_request_timeout_ms: 3000 // Time in milliseconds. Default is 3000 (3 seconds).
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ You can configure the `feature_flag_request_timeout_ms` parameter when initializ
```js
posthog.init('<ph_project_token>', {
api_host: '<ph_client_api_host>',
defaults: '<ph_posthog_js_defaults>'
defaults: '<ph_posthog_js_defaults>',
feature_flag_request_timeout_ms: 3000 // Time in milliseconds. Default is 3000 (3 seconds).
})
```
Expand Down
2 changes: 1 addition & 1 deletion contents/docs/libraries/nuxt-js-3-6.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default defineEventHandler(async (event) => {

posthog.capture({
event: 'api_call',
distinctId: distinctId,
distinctId: distinctID,
properties: {
$current_url: url,
query: query
Expand Down
2 changes: 1 addition & 1 deletion contents/docs/libraries/react-native/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ You can enable debug mode by setting the `debug` option to `true` in the `PostHo

```react-native
<PostHogProvider
debug: {true}
debug={true}
apiKey="<ph_project_token>"
options={{
host: "<ph_client_api_host>",
Expand Down
2 changes: 1 addition & 1 deletion contents/docs/libraries/segment.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ With the Analytics.js source, you can use `analytics.track('Event Name')` to sen
```js
analytics.track("user signed up", {
plan: "Pro Annual",
accountType: "Premium"
accountType: "Premium",
$set: {
paid: true
}
Expand Down
2 changes: 1 addition & 1 deletion contents/docs/libraries/svelte.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ To fix this, set the config to not use relative paths in `svelte.config.js`:

## Next steps

For any technical questions for how to integrate specific PostHog features into Svelte (such as analytics, feature flags, A/B testing, surveys, etc.), have a look at our [JavaScript Web](/docs/libraries/js/features) and [Node]((/docs/libraries/node)) SDK docs.
For any technical questions for how to integrate specific PostHog features into Svelte (such as analytics, feature flags, A/B testing, surveys, etc.), have a look at our [JavaScript Web](/docs/libraries/js/features) and [Node](/docs/libraries/node) SDK docs.

Alternatively, the following tutorials can help you get started:

Expand Down
4 changes: 2 additions & 2 deletions contents/docs/logs/link-session-replay.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ In your frontend code, retrieve the current session ID and send it with your API
import posthog from 'posthog-js'

// Get the current session ID
const sessionId = posthog.getSessionId()
const sessionId = posthog.get_session_id()

// Send it with your API request
const response = await fetch('/api/chat', {
Expand All @@ -57,7 +57,7 @@ const response = await fetch('/api/chat', {
import { posthog } from './posthog'

// Get the current session ID
const sessionId = posthog.getSessionId()
const sessionId = posthog.get_session_id()

// Send it with your API request
const response = await fetch('https://api.example.com/chat', {
Expand Down