added iOS source code
[wl-app.git] / iOS / Pods / MatomoTracker / MatomoTracker / CustomDimension.swift
diff --git a/iOS/Pods/MatomoTracker/MatomoTracker/CustomDimension.swift b/iOS/Pods/MatomoTracker/MatomoTracker/CustomDimension.swift
new file mode 100644 (file)
index 0000000..38dece0
--- /dev/null
@@ -0,0 +1,15 @@
+import Foundation
+
+/// For more information on custom dimensions visit https://piwik.org/docs/custom-dimensions/
+public struct CustomDimension {
+    /// The index of the dimension. A dimension with this index must be setup in the Matomo backend.
+    let index: Int
+    
+    /// The value you want to set for this dimension.
+    let value: String
+    
+    public init(index: Int, value: String) {
+      self.index = index
+      self.value = value
+    }
+}