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/connections/sources/catalog/libraries/mobile/xamarin/index.md
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ sourceTitle: 'Xamarin'
4
4
sourceCategory: 'Mobile'
5
5
id: wcssVcPJrc
6
6
---
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:
8
8
9
9
- .NET Framework 4 or later
10
10
- Windows Phone 8 or later
@@ -17,7 +17,10 @@ Our [Xamarin](http://xamarin.com/) Portable Class Library ([PCL](http://develope
17
17
18
18
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).
19
19
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/).
Copy file name to clipboardExpand all lines: src/connections/sources/catalog/libraries/server/csharp/index.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ strat: csharp
4
4
id:
5
5
---
6
6
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.
8
8
9
9
> info ""
10
10
> 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:
<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"}.
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"}.
7
10
8
11
1. Create a source in Segment. If you want to reuse your current source, skip to step 2.
9
12
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.
11
14
2. Add the Analytics CSharp dependency to your project.
12
15
13
16
<br> Before:
@@ -46,14 +49,6 @@ If you’re using a different library such as Analytics .Net, follow the steps b
46
49
{ "email", "#{ user.email }" },
47
50
{ "friends", 29 }
48
51
});
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
-
});
57
52
```
58
53
59
54
- Track
@@ -73,13 +68,6 @@ If you’re using a different library such as Analytics .Net, follow the steps b
73
68
{ "revenue", 39.95 },
74
69
{ "shipping", "2-day" }
75
70
});
76
-
77
-
// below is the new way
78
-
analytics.Track("Item Purchased", new JsonObject
79
-
{
80
-
["revenue"] = 39.95,
81
-
["shipping"] = "2-days"
82
-
});
83
71
```
84
72
**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.
85
73
@@ -100,13 +88,6 @@ If you’re using a different library such as Analytics .Net, follow the steps b
100
88
{ "path", "/login" },
101
89
{ "title", "Initech Login" }
102
90
});
103
-
104
-
// below is the new way
105
-
analytics.Page("Login", new JsonObject
106
-
{
107
-
["path"] = "/login",
108
-
["title"] = "Initech Login"
109
-
});
110
91
```
111
92
112
93
- Screen
@@ -124,12 +105,6 @@ If you’re using a different library such as Analytics .Net, follow the steps b
124
105
{
125
106
{ "type", "facebook" }
126
107
});
127
-
128
-
// below is the new way
129
-
analytics.Screen("Register", new JsonObject
130
-
{
131
-
["type"] = "facebook"
132
-
});
133
108
```
134
109
135
110
- Group
@@ -149,13 +124,6 @@ If you’re using a different library such as Analytics .Net, follow the steps b
149
124
{ "name", "Initech, Inc." },
150
125
{ "website", "http://www.example.com" }
151
126
});
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
-
});
159
127
```
160
128
161
129
- Alias
@@ -190,7 +158,7 @@ If you’re using a different library such as Analytics .Net, follow the steps b
190
158
Analytics.Initialize("YOUR_WRITE_KEY", new Config().SetAsync(false));
191
159
```
192
160
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:
194
162
195
163
<br> After:
196
164
```c#
@@ -223,17 +191,6 @@ If you’re using a different library such as Analytics .Net, follow the steps b
Copy file name to clipboardExpand all lines: src/connections/sources/catalog/libraries/server/net/index.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ Segment's .NET library is the best way to integrate analytics into your .NET app
10
10
11
11
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.
12
12
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/).
0 commit comments