Skip to content

Commit 527074f

Browse files
committed
edits [netlify-build]
1 parent d00b45d commit 527074f

File tree

4 files changed

+15
-53
lines changed

4 files changed

+15
-53
lines changed

src/connections/sources/catalog/libraries/mobile/xamarin/index.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sourceTitle: 'Xamarin'
44
sourceCategory: 'Mobile'
55
id: wcssVcPJrc
66
---
7-
Our [Xamarin](http://xamarin.com/) Portable Class Library ([PCL](http://developer.xamarin.com/guides/cross-platform/application_fundamentals/pcl/)) is the best way to integrate analytics into your Xamarin application. It lets you record analytics data from your C#, F#, and .NET code, and supports `PCL Profile 4.0 - Profile136`, which targets the following platforms:
7+
Segment's [Xamarin](http://xamarin.com/) Portable Class Library ([PCL](http://developer.xamarin.com/guides/cross-platform/application_fundamentals/pcl/)) is the best way to integrate analytics into your Xamarin application. It lets you record analytics data from your C#, F#, and .NET code, and supports `PCL Profile 4.0 - Profile136`, which targets the following platforms:
88

99
- .NET Framework 4 or later
1010
- Windows Phone 8 or later
@@ -17,7 +17,10 @@ Our [Xamarin](http://xamarin.com/) Portable Class Library ([PCL](http://develope
1717

1818
The library issues requests that hit our servers, and then we route your data to any analytics service you enable on our destinations page. This library is open-source, so you can [check it out on GitHub](https://github.com/segmentio/Analytics.Xamarin).
1919

20-
**Note:** Since Xamarin requires our library to be portable to different builds, we can only enable server-side destinations, as opposed to bundling select native SDKs like we do for iOS and Android. Look for the "Server" icon when selecting destinations. For tools for which we offer both bundled and server-side destinations, like Mixpanel, Amplitude, and Google Analytics, our Xamarin library will only be able to use their server-side functionality.
20+
**Note:** Since Xamarin requires Segment's library to be portable to different builds, Segment can only enable server-side destinations, as opposed to bundling select native SDKs like we do for iOS and Android. Look for the "Server" icon when selecting destinations. For tools for which we offer both bundled and server-side destinations, like Mixpanel, Amplitude, and Google Analytics, Segment's Xamarin library will only be able to use their server-side functionality.
21+
22+
> info "Analytics-CSharp (C#)"
23+
> The Analytics-CSharp library is currently in beta and is governed by Segment’s [First Access and Beta terms](https://www.twilio.com/legal/tos){:target="_blank"}. Learn more about the [Analytics-CSharp library](/docs/connections/sources/catalog/libraries/server/csharp/). If you'd like to migrate to using Analytics-CSharp, see the [Analytics-CSharp migration guide](/docs/connections/sources/catalog/libraries/server/csharp/migration-guide/).
2124
2225
## Getting Started
2326

src/connections/sources/catalog/libraries/server/csharp/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ strat: csharp
44
id:
55
---
66

7-
With Analytics-CSharp, you can add Segment analytics to your .Net app which includes Unity, Xamarin, .Net. Analytics-CSharp helps you measure your users, product, and business. It unlocks insights into your app's funnel, core business metrics, and whether you have product-market fit.
7+
With Analytics-CSharp, you can add Segment analytics to your C# based app which includes Unity, Xamarin, .NET. Analytics-CSharp helps you measure your users, product, and business. It unlocks insights into your app's funnel, core business metrics, and whether you have product-market fit.
88

99
> info ""
1010
> This library is currently in beta and is governed by Segment’s [First Access and Beta terms](https://www.twilio.com/legal/tos){:target="_blank"}.
@@ -38,7 +38,7 @@ To get started with the Analytics-CSharp library:
3838
```git
3939
dotnet add package Segment.Analytics.CSharp --version <LATEST_VERSION>
4040
```
41-
<br>**Note:** Analytics-CSharp is distributed through NuGet. Check out other installation options [here](https://www.nuget.org/packages/Segment.Analytics.CSharp/){:target="_blank"}.
41+
<br>**Note:** Analytics-CSharp is distributed through NuGet. Check out other installation options [here](https://www.nuget.org/packages/Segment.Analytics.CSharp/){:target="_blank"}. For Unity, Analytics-Chsharp is distributed through [OpenUPM](https://openupm.com/packages/com.segment.analytics.csharp/?subPage=readme){:target="_blank"}.
4242
4343
3. Initialize and configure the client.
4444

src/connections/sources/catalog/libraries/server/csharp/migration-guide.md

Lines changed: 6 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ title: Analytics for CSharp (C#) Migration Guide
33
strat: csharp
44
---
55

6-
If you’re using a different library such as Analytics .Net, follow the steps below to migrate to the Analytics-CSharp library.
6+
If you’re using a different library, follow the steps below to migrate to the [Analytics-CSharp library](/docs/connections/sources/catalog/libraries/server/csharp/).
7+
8+
> info ""
9+
> This library is currently in beta and is governed by Segment’s [First Access and Beta terms](https://www.twilio.com/legal/tos){:target="_blank"}.
710
811
1. Create a source in Segment. If you want to reuse your current source, skip to step 2.
912
1. Go to Connections > Sources > Add Source.
10-
2. Search for Xamarin or Unity or .NET and click Add source.
13+
2. Search for *Xamarin, Unity* or *.NET* and click **Add source**. **Note:** There is no CSharp source. To use Analytics-CSharp, use either Xamarin, Unity, or .NET as your source.
1114
2. Add the Analytics CSharp dependency to your project.
1215

1316
<br> Before:
@@ -46,14 +49,6 @@ If you’re using a different library such as Analytics .Net, follow the steps b
4649
{ "email", "#{ user.email }" },
4750
{ "friends", 29 }
4851
});
49-
50-
// below is the new way
51-
analytics.Identify("019mr8mf4r", new JsonObject
52-
{
53-
["name"] = "#{user.name}",
54-
["email"] = "#{user.email}",
55-
["friends"] = 29
56-
});
5752
```
5853

5954
- Track
@@ -73,13 +68,6 @@ If you’re using a different library such as Analytics .Net, follow the steps b
7368
{ "revenue", 39.95 },
7469
{ "shipping", "2-day" }
7570
});
76-
77-
// below is the new way
78-
analytics.Track("Item Purchased", new JsonObject
79-
{
80-
["revenue"] = 39.95,
81-
["shipping"] = "2-days"
82-
});
8371
```
8472
**Note:** The Analytics-CSharp SDK remembers the identity info from the last identify call, so you don’t have to pass an identity every time. If you still want to identify on every track call, you can achieve it with Segment's plugin system.
8573
@@ -100,13 +88,6 @@ If you’re using a different library such as Analytics .Net, follow the steps b
10088
{ "path", "/login" },
10189
{ "title", "Initech Login" }
10290
});
103-
104-
// below is the new way
105-
analytics.Page("Login", new JsonObject
106-
{
107-
["path"] = "/login",
108-
["title"] = "Initech Login"
109-
});
11091
```
11192
11293
- Screen
@@ -124,12 +105,6 @@ If you’re using a different library such as Analytics .Net, follow the steps b
124105
{
125106
{ "type", "facebook" }
126107
});
127-
128-
// below is the new way
129-
analytics.Screen("Register", new JsonObject
130-
{
131-
["type"] = "facebook"
132-
});
133108
```
134109
135110
- Group
@@ -149,13 +124,6 @@ If you’re using a different library such as Analytics .Net, follow the steps b
149124
{ "name", "Initech, Inc." },
150125
{ "website", "http://www.example.com" }
151126
});
152-
153-
// below is the new way
154-
analytics.Group("groupId", new JsonObject
155-
{
156-
["name"] = "Initech, Inc.",
157-
["website"] = "http://www.example.com"
158-
});
159127
```
160128
161129
- Alias
@@ -190,7 +158,7 @@ If you’re using a different library such as Analytics .Net, follow the steps b
190158
Analytics.Initialize("YOUR_WRITE_KEY", new Config().SetAsync(false));
191159
```
192160
193-
The new SDK by default, generates an Anonymous ID for you if you never all `analytics.Identify`. If you've called `Identify` and want to go back to anonymous, try:
161+
The new SDK by default, generates an Anonymous ID for you if you never call `analytics.Identify`. If you've called `Identify` and want to go back to anonymous, try:
194162

195163
<br> After:
196164
```c#
@@ -223,17 +191,6 @@ If you’re using a different library such as Analytics .Net, follow the steps b
223191
{ "city", "Boston" }
224192
}}
225193
});
226-
227-
// below is the new way
228-
analytics.Identify("hj2kf92ds212", new JsonObject
229-
{
230-
["email"] = "[email protected]",
231-
["name"] = "Tom Smykowski",
232-
["address"] = new JsonObject {
233-
["street"] = "123 Fake Street",
234-
["city"] = "Boston"
235-
}
236-
});
237194
```
238195

239196
The new SDK internally implements a flexible JSON builder (Serialization.NET), that allows you build a complex JSON payload:

src/connections/sources/catalog/libraries/server/net/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Segment's .NET library is the best way to integrate analytics into your .NET app
1010

1111
All of Segment's server-side libraries are built for high-performance, so you can use them in your web server controller code. This library uses an internal queue to make `identify` and `track` calls non-blocking and fast. It also batches messages and flushes asynchronously to our servers.
1212

13+
> info "Analytics-CSharp (C#)"
14+
> The Analytics-CSharp library is currently in beta and is governed by Segment’s [First Access and Beta terms](https://www.twilio.com/legal/tos){:target="_blank"}. Learn more about the [Analytics-CSharp library](/docs/connections/sources/catalog/libraries/server/csharp/). If you'd like to migrate to using Analytics-CSharp, see the [Analytics-CSharp migration guide](/docs/connections/sources/catalog/libraries/server/csharp/migration-guide/).
1315
1416
## Getting Started
1517

0 commit comments

Comments
 (0)