-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from RBND-studio/dev
Merge dev
- Loading branch information
Showing
30 changed files
with
583 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
.../(dashboard)/org/[organizationId]/project/[projectId]/(detail)/getting-started/verify.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Flex } from "@flows/styled-system/jsx"; | ||
import Link from "next/link"; | ||
import type { FC } from "react"; | ||
import { links } from "shared"; | ||
import { Button, Text } from "ui"; | ||
|
||
import { NumberCircle } from "./number-circle"; | ||
|
||
export const Verify: FC = () => { | ||
return ( | ||
<Flex gap="space12"> | ||
<NumberCircle>3</NumberCircle> | ||
<Flex | ||
alignItems="center" | ||
flex="1" | ||
gap="space16" | ||
justifyContent="space-between" | ||
mdDown={{ flexDirection: "column", justifyContent: "unset", alignItems: "flex-start" }} | ||
> | ||
<Flex flexDirection="column" gap="space4"> | ||
<Text variant="titleL">Verify the installation</Text> | ||
<Text color="muted"> | ||
Verify that the Flows SDK is installed correctly on your website before you start | ||
creating flows. | ||
</Text> | ||
</Flex> | ||
<Button asChild size="medium" variant="primary"> | ||
<Link target="_blank" href={links.docsVerifyInstallation}> | ||
Learn how | ||
</Link> | ||
</Button> | ||
</Flex> | ||
</Flex> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"install-flows": "Install Flows", | ||
"identify-users": "Identify users", | ||
"concepts": "Concepts" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
title: Identify users | ||
description: Learn how to identify users in your application. | ||
--- | ||
|
||
# Identify users | ||
|
||
For flows to show up only once to a user, you need to identify the user. This is done by passing a `userId` parameter to the `init` function. This will allow you to count unique users that have seen your flows and show the flows only once to a specific user. | ||
|
||
```js | ||
init({ | ||
// Unique identifier for the user | ||
// Prefer database ID over email if you're concerned about privacy of your users | ||
userId: "xxxx" | ||
|
||
projectId: "...", | ||
}) | ||
``` | ||
|
||
The `userId` parameter can be any unique identifier for the user. We recommend using a database ID or a UUID. We hash the user ID on the client side before sending it to our servers to protect your users' privacy. | ||
|
||
## Adding user properties | ||
|
||
To target your flows to specific users, you can optionally pass user properties to the `init` function. These properties can be used to target flows to specific users based on their properties. | ||
|
||
```js | ||
init({ | ||
userId: "xxxx", | ||
projectId: "...", | ||
userProperties: { | ||
email: "john.doe@flows.sh" | ||
name: "John Doe", | ||
plan: "premium" | ||
}, | ||
}) | ||
``` | ||
|
||
To protect your users' privacy Flows don’t store any personal data about your users. When you setup targeting based on user properties the evaluation is done on the client side. This means that the user data is never sent to our servers. |
Oops, something went wrong.