Skip to content

Commit

Permalink
Merge pull request #71 from fingerprintjs/docs/readme-unify-linked-id…
Browse files Browse the repository at this point in the history
…-section

docs(README): unify linkedId section INTER-586
  • Loading branch information
JuroUhlar authored May 23, 2024
2 parents eea71f3 + 9451f37 commit bce4e71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ on:
push:
branches-ignore:
- main
paths-ignore:
- '**.md'
jobs:
test:
name: Test
Expand Down
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,20 +157,17 @@ void doInit() async {
}
```

### 3. Use [`linkedId`](https://dev.fingerprint.com/docs/js-agent#linkedid) and [`tags`](https://dev.fingerprint.com/docs/js-agent#tag) to label the identification event with additional data
### Linking and tagging information

The `visitorId` provided by Fingerprint Identification is especially useful when combined with information you already know about your users, for example, account IDs, order IDs, etc. To learn more about various applications of the `linkedId` and `tag`, see [Linking and tagging information](https://dev.fingerprint.com/docs/tagging-information).

```dart
void doIdentification() async {
void identify() async {
const tags = {
'foo': 'bar',
'numberField': 1234,
'objectField': {
'booleanSubfield': true,
'arraySubfield': [1, 2, 3]
},
'booleanField': false
userAction: 'login',
analyticsId: 'UA-5555-1111-1'
};
const linkedId = 'custom_linked_id';
const linkedId = 'user_1234';
visitorId = await FpjsProPlugin.getVisitorId(linkedId: linkedId, tags: tags);
deviceData = await FpjsProPlugin.getVisitorData(linkedId: linkedId, tags: tags);
Expand Down

0 comments on commit bce4e71

Please # to comment.