fix(docs): remove alias from docs for now
This commit is contained in:
@@ -70,23 +70,6 @@ curl -X POST https://api.openpanel.dev/track \
|
|||||||
}'
|
}'
|
||||||
```
|
```
|
||||||
|
|
||||||
### Creating Aliases
|
|
||||||
To create an alias for a user:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
curl -X POST https://api.openpanel.dev/track \
|
|
||||||
-H "Content-Type: application/json" \
|
|
||||||
-H "openpanel-client-id: YOUR_CLIENT_ID" \
|
|
||||||
-H "openpanel-client-secret: YOUR_CLIENT_SECRET" \
|
|
||||||
-d '{
|
|
||||||
"type": "alias",
|
|
||||||
"payload": {
|
|
||||||
"profileId": "1",
|
|
||||||
"alias": "a1"
|
|
||||||
}
|
|
||||||
}'
|
|
||||||
```
|
|
||||||
|
|
||||||
### Incrementing Properties
|
### Incrementing Properties
|
||||||
To increment a numeric property:
|
To increment a numeric property:
|
||||||
|
|
||||||
|
|||||||
@@ -98,10 +98,6 @@ track('your_event_name', {
|
|||||||
|
|
||||||
Associates the current user with a unique identifier and optional traits.
|
Associates the current user with a unique identifier and optional traits.
|
||||||
|
|
||||||
### Alias
|
|
||||||
|
|
||||||
Creates an alias for a user identifier.
|
|
||||||
|
|
||||||
### Increment
|
### Increment
|
||||||
|
|
||||||
Increments a numeric property for a user.
|
Increments a numeric property for a user.
|
||||||
|
|||||||
@@ -84,19 +84,6 @@ op.setGlobalProperties({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
### Creating Aliases
|
|
||||||
|
|
||||||
To create an alias for a user:
|
|
||||||
|
|
||||||
```js title="index.js"
|
|
||||||
import { op } from './op.ts'
|
|
||||||
|
|
||||||
op.alias({
|
|
||||||
alias: 'a1',
|
|
||||||
profileId: '1'
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
### Incrementing Properties
|
### Incrementing Properties
|
||||||
|
|
||||||
To increment a numeric property on a user profile.
|
To increment a numeric property on a user profile.
|
||||||
|
|||||||
@@ -193,17 +193,6 @@ useOpenPanel().setGlobalProperties({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
### Creating Aliases
|
|
||||||
|
|
||||||
To create an alias for a user:
|
|
||||||
|
|
||||||
```js title="index.js"
|
|
||||||
useOpenPanel().alias({
|
|
||||||
alias: 'a1',
|
|
||||||
profileId: '1'
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
### Incrementing Properties
|
### Incrementing Properties
|
||||||
|
|
||||||
To increment a numeric property on a user profile.
|
To increment a numeric property on a user profile.
|
||||||
|
|||||||
@@ -108,17 +108,6 @@ op.set_global_properties({
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
### Creating Aliases
|
|
||||||
|
|
||||||
To create an alias for a user:
|
|
||||||
|
|
||||||
```python
|
|
||||||
op.alias({
|
|
||||||
"alias": "a1",
|
|
||||||
"profile_id": "1"
|
|
||||||
})
|
|
||||||
```
|
|
||||||
|
|
||||||
### Incrementing Properties
|
### Incrementing Properties
|
||||||
|
|
||||||
To increment a numeric property on a user profile:
|
To increment a numeric property on a user profile:
|
||||||
|
|||||||
@@ -74,17 +74,6 @@ window.op('setGlobalProperties', {
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
### Creating Aliases
|
|
||||||
|
|
||||||
To create an alias for a user:
|
|
||||||
|
|
||||||
```js title="main.js"
|
|
||||||
window.op('alias', {
|
|
||||||
alias: 'a1',
|
|
||||||
profileId: '1'
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
### Incrementing Properties
|
### Incrementing Properties
|
||||||
|
|
||||||
To increment a numeric property on a user profile.
|
To increment a numeric property on a user profile.
|
||||||
@@ -184,7 +173,7 @@ declare global {
|
|||||||
op: {
|
op: {
|
||||||
q?: string[][];
|
q?: string[][];
|
||||||
(...args: [
|
(...args: [
|
||||||
'init' | 'track' | 'identify' | 'setGlobalProperties' | 'alias' | 'increment' | 'decrement' | 'clear',
|
'init' | 'track' | 'identify' | 'setGlobalProperties' | 'increment' | 'decrement' | 'clear',
|
||||||
...any[]
|
...any[]
|
||||||
]): void;
|
]): void;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user