diff --git a/src/MercadoPago/Client/MercadoPagoClient.cs b/src/MercadoPago/Client/MercadoPagoClient.cs
index 49a2b295..b7054e72 100644
--- a/src/MercadoPago/Client/MercadoPagoClient.cs
+++ b/src/MercadoPago/Client/MercadoPagoClient.cs
@@ -56,6 +56,7 @@ protected MercadoPagoClient(
[Headers.ACCEPT] = ACCEPT_VALUE,
[Headers.PRODUCT_ID] = MercadoPagoConfig.ProductId,
[Headers.USER_AGENT] = $"MercadoPago DotNet SDK/{MercadoPagoConfig.Version}",
+ [Headers.TRACKING_ID] = MercadoPagoConfig.TrackingId,
};
///
diff --git a/src/MercadoPago/Config/MercadoPagoConfig.cs b/src/MercadoPago/Config/MercadoPagoConfig.cs
index 6f315c67..ea3cbd8a 100644
--- a/src/MercadoPago/Config/MercadoPagoConfig.cs
+++ b/src/MercadoPago/Config/MercadoPagoConfig.cs
@@ -1,5 +1,6 @@
namespace MercadoPago.Config
{
+ using System;
using System.Configuration;
using System.Reflection;
using MercadoPago.Http;
@@ -23,14 +24,22 @@ public static class MercadoPagoConfig
private static ISerializer serializer;
private static IRetryStrategy retryStrategy;
- static MercadoPagoConfig() =>
+ static MercadoPagoConfig()
+ {
Version = new AssemblyName(typeof(MercadoPagoConfig).GetTypeInfo().Assembly.FullName).Version.ToString(3);
+ TrackingId = $"platform:{Environment.Version.Major}|{Environment.Version},type:SDK{Version},so;";
+ }
///
/// Actual SDK version.
///
public static string Version { get; }
+ ///
+ /// SDK Tracking Id.
+ ///
+ public static string TrackingId { get; }
+
///
/// Base URL of MercadoPago's APIs.
///
diff --git a/src/MercadoPago/Http/Headers.cs b/src/MercadoPago/Http/Headers.cs
index 6e2717f4..0c75d38f 100644
--- a/src/MercadoPago/Http/Headers.cs
+++ b/src/MercadoPago/Http/Headers.cs
@@ -49,5 +49,10 @@ public static class Headers
/// Platform ID header name.
///
public const string PLATFORM_ID = "X-Platform-Id";
+
+ ///
+ /// Tracking ID header name.
+ ///
+ public const string TRACKING_ID = "X-Tracking-Id";
}
}
diff --git a/src/MercadoPago/MercadoPago.csproj b/src/MercadoPago/MercadoPago.csproj
index 0768c2c7..a4f3688b 100644
--- a/src/MercadoPago/MercadoPago.csproj
+++ b/src/MercadoPago/MercadoPago.csproj
@@ -18,8 +18,8 @@
True
snupkg
net5.0;netstandard2.0;net461
- 2.3.3
- 2.3.3
+ 2.3.4
+ 2.3.4