Skip to content

Commit 4c06efc

Browse files
committed
Putting images currently in the docs back into this PR
1 parent efb4f85 commit 4c06efc

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/connections/spec/best-practices-identify.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,9 @@ After you fire the `identify` call with the `userId`, you'll notice that the pay
232232

233233
## Merging Identified and Anonymous user profiles
234234

235-
<!--- The illustration below shows a timeline with a user's interactions on a website, including sample API calls above that show Segment calls, and the user's `anonymousId` and `userId`.
235+
![The illustration shows a timeline with a user's interactions on a website, including sample API calls above that show Segment calls, and the user's `anonymousId` and `userId`](images/identify-bp-1.png)
236236

237-
![](images/identify-bp-1.png)
238-
239-
https://www.figma.com/file/Gc53MamYsKZBg3IUduunc5/identity-best-practices?node-id=1%3A3 -->
237+
<!--https://www.figma.com/file/Gc53MamYsKZBg3IUduunc5/identity-best-practices?node-id=1%3A3 -->
240238

241239
When the user first visits a page, Analytics.js automatically assigns the user an `anonymousId` and saves it to the user's `localStorage`. As the user interacts with the site, for example clicking around to different pages, Analytics.js includes this `anonymousId` and some [contextual information](/docs/connections/spec/common#context) with each `page` and `track` call. The contextual information might be the user's [IP address, browser, and more](/docs/connections/spec/common#context-fields-automatically-collected).
242240

@@ -275,22 +273,22 @@ Let's go through some more scenarios to explain how an `anonymousId` is assigned
275273

276274
If a user clicks on an ad and is directed to a webpage, they are assigned an `anonymousId`. While this user is anonymous, they navigate to different pages and click around on the website. Say they come back two days later from the same device, sign up, and are assigned a `userId` from your database.
277275

278-
<!---![](images/identify-bp-2.png)--->
276+
![](images/identify-bp-2.png)
279277

280278
For simplicity, we're assuming that the user has _not_ cleared their cookies or `localStorage`, where the original `anonymousId` is stored. If they had, they'd be assigned a new `anonymousId` when they visited the website, and the `userId` they got when they register on the website would _not_ be attached to the activities tracked with the old `anonymousId`.
281279

282280
#### Scenario #2 - Multi-day, multi-device, single login
283281

284282
In this scenario, the person uses both a web browser, and a mobile application to interact with your site. In each case, they are assigned a different `anonymousId`. In this scenario, the user signs up on the web browser, so their _web_ session is assigned a `userId`. However, because they do not log in on the mobile application, Segment cannot tie the mobile activity to this specific user. Their mobile application activity remains anonymous unless they log in on the mobile application.
285283

286-
<!---![](images/identify-bp-3.png)--->
284+
![](images/identify-bp-3.png)
287285

288286

289287
#### Scenario #3 - Multi-day, multi-device, multiple logins
290288

291289
Similar to the previous scenario, the user accessed both your website and mobile application, and also logged in on both. In this case, both sessions on the web and mobile app receive the user's `userId`, so Segment can tie the anonymous activity on both web and mobile to this user.
292290

293-
<!---![](images/identify-bp-4.png)--->
291+
![](images/identify-bp-4.png)
294292

295293

296294
## User profiles in warehouses

0 commit comments

Comments
 (0)