You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/getting-started/02-simple-install.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -191,8 +191,10 @@ configuration.recordScreenViews = YES; // Enable this to record screen views aut
191
191
<br>
192
192
To keep the Segment SDK lightweight, the `Analytics` pod only installs the Segment library. This means all of the data goes first to Segment's servers, and is then forwarded to any destination tools which accept the data _from Segment_.
193
193
<br>
194
+
<br>
194
195
Some destinations don't accept data from the Segment servers, and instead require that you collect the data from the device. In these cases you must bundle some additional destination code with the Segment SDK. This document skips over this part, but you can see the instructions on [how to bundle the destination tools](/docs/connections/sources/catalog/libraries/mobile/ios/#about-mobile-connection-modes).
195
196
<br>
197
+
<br>
196
198
Now that the SDK is installed and set up, you're ready to start making calls.
197
199
<br><br>
198
200
@@ -212,12 +214,13 @@ This call identifies Michael by his unique user ID, `f4ca124298`, which is the o
212
214
<br><br>
213
215
> info ""
214
216
> When you put the code in your iOS app, replace the hard-coded trait values with variables that represent the details of the user that's currently signed in.
215
-
<br><br>
217
+
<br>
216
218
217
219
### Step 3: Track actions
218
220
<br>
219
221
The [Track](/docs/connections/spec/track) method tells Segment about the actions your users are performing in your app. Every action triggers an "event", which can also have associated properties. You can read more about `track` in the [Track method reference](/docs/connections/sources/catalog/libraries/mobile/ios#track).
220
222
<br>
223
+
<br>
221
224
The Segment iOS SDK can automatically track a few important common events, such as **Application Installed**, **Application Updated**, and **Application Opened**. You can enable this option during initialization by adding the following lines:
You only need to call `init` once when your PHP file is requested. All of your files then have access to the same `Analytics` client.
291
294
<br>
295
+
<br>
292
296
> info ""
293
297
> Segment's default PHP consumer is the [libcurl consumer](/docs/connections/sources/catalog/libraries/server/php/#lib-curl-consumer). If this is not working well for you or if you have a high-volume project, try one of Segment's other consumers like the [fork-curl consumer](/docs/connections/sources/catalog/libraries/server/php/#fork-curl-consumer).
294
298
@@ -312,6 +316,7 @@ Segment::identify(array(
312
316
<br>
313
317
This identifies Michael by his unique user ID, in this case, `f4ca124298`, which is what you know him by in your database, and labels him with `name` and `email` traits.
314
318
<br>
319
+
<br>
315
320
> info ""
316
321
> When you put that code on your site, replace the hard-coded trait values with the variables that represent the details of the currently logged-in user. We recommend you keep a `$user` variable in memory.
317
322
<br>
@@ -373,11 +378,12 @@ To get started, we recommend you track a few important events as you can always
373
378
<br>
374
379
Call the Flush method. This manually sends all the queued call data to make sure it makes it to the Segment servers. This is normally done automatically by the runtime, but some PHP installations won't do it for you.
375
380
<br>
381
+
<br>
376
382
```php
377
383
Segment::flush();
378
384
```
379
385
380
-
You've successfully installed PHP tracking. Now you're ready to turn on any destination from the Segment App.
386
+
You've now installed PHP tracking and you're ready to turn on any destination from the Segment App.
0 commit comments