@@ -95,25 +95,25 @@ Use this to understand where your events live in the code and how they're being
9595Your LLM of choice is used for generating descriptions of events, properties, and implementations.
9696
9797See [schema.json](schema.json) for a JSON Schema of the output.
98-
98+
9999
100100## Supported tracking libraries & languages
101101
102- | Library | JavaScript/TypeScript | Python | Ruby | Go |
103- |---------|:---------------------:|:------:|:----:|:--:|
104- | Google Analytics | ✅ | ❌ | ❌ | ❌ |
105- | Google Tag Manager | ✅ | ❌ | ❌ | ❌ |
106- | Segment | ✅ | ✅ | ✅ | ✅ |
107- | Mixpanel | ✅ | ✅ | ✅ | ✅ |
108- | Amplitude | ✅ | ✅ | ❌ | ✅ |
109- | Rudderstack | ✅ | ✅ | ✳️ | ✳️ |
110- | mParticle | ✅ | ❌ | ❌ | ❌ |
111- | PostHog | ✅ | ✅ | ✅ | ✅ |
112- | Pendo | ✅ | ❌ | ❌ | ❌ |
113- | Heap | ✅ | ❌ | ❌ | ❌ |
114- | Snowplow | ✅ | ✅ | ✅ | ✅ |
115- | Datadog RUM | ✅ | ❌ | ❌ | ❌ |
116- | Custom Function | ✅ | ✅ | ✅ | ✅ |
102+ | Library | JavaScript/TypeScript | Python | Ruby | Go | Swift |
103+ |---------|:---------------------:|:------:|:----:|:--:|:--:|
104+ | Google Analytics | ✅ | ❌ | ❌ | ❌ | ✅ |
105+ | Google Tag Manager | ✅ | ❌ | ❌ | ❌ | ✅ |
106+ | Segment | ✅ | ✅ | ✅ | ✅ | ✅ |
107+ | Mixpanel | ✅ | ✅ | ✅ | ✅ | ✅ |
108+ | Amplitude | ✅ | ✅ | ❌ | ✅ | ✅ |
109+ | Rudderstack | ✅ | ✅ | ✳️ | ✳️ | ✅ |
110+ | mParticle | ✅ | ❌ | ❌ | ❌ | ✅ |
111+ | PostHog | ✅ | ✅ | ✅ | ✅ | ✅ |
112+ | Pendo | ✅ | ❌ | ❌ | ❌ | ✅ |
113+ | Heap | ✅ | ❌ | ❌ | ❌ | ✅ |
114+ | Snowplow | ✅ | ✅ | ✅ | ✅ | ❌ |
115+ | Datadog RUM | ✅ | ❌ | ❌ | ❌ | ❌ |
116+ | Custom Function | ✅ | ✅ | ✅ | ✅ | ✅ |
117117
118118✳️ Rudderstack's SDKs often use the same format as Segment, so Rudderstack events may be detected as Segment events.
119119
@@ -129,6 +129,13 @@ See [schema.json](schema.json) for a JSON Schema of the output.
129129 ' <property_name> ' : ' <property_value>'
130130 });
131131 ```
132+
133+ ** Swift**
134+ ``` swift
135+ Analytics.logEvent (" <event_name>" , parameters : [
136+ " <property_name>" : " <property_value>"
137+ ])
138+ ```
132139</details >
133140
134141<details >
@@ -147,6 +154,11 @@ See [schema.json](schema.json) for a JSON Schema of the output.
147154 ' <property_name>' : ' <property_value>'
148155 });
149156 ```
157+
158+ ** Swift**
159+ ``` swift
160+ dataLayer.push ([" event" : " <event_name>" , " <property_name>" : " <property_value>" ])
161+ ```
150162</details >
151163
152164<details >
@@ -185,6 +197,11 @@ See [schema.json](schema.json) for a JSON Schema of the output.
185197 Set (" <property_name>" , " <property_value>" ),
186198 })
187199 ```
200+
201+ ** Swift**
202+ ``` swift
203+ analytics.track (name : " <event_name>" , properties : TrackProperties (" <property_name>" : " <property_value>" ))
204+ ```
188205</details >
189206
190207<details >
@@ -221,6 +238,13 @@ See [schema.json](schema.json) for a JSON Schema of the output.
221238 }),
222239 })
223240 ```
241+
242+ ** Swift**
243+ ``` swift
244+ Mixpanel.mainInstance ().track (event : " <event_name>" , properties : [
245+ " <property_name>" : " <property_value>"
246+ ])
247+ ```
224248</details >
225249
226250<details >
@@ -256,6 +280,14 @@ See [schema.json](schema.json) for a JSON Schema of the output.
256280 },
257281 })
258282 ```
283+
284+ ** Swift**
285+ ``` swift
286+ amplitude.track (
287+ eventType : " <event_name>" ,
288+ eventProperties : [" <property_name>" : " <property_value>" ]
289+ )
290+ ```
259291</details >
260292
261293<details >
@@ -295,6 +327,13 @@ See [schema.json](schema.json) for a JSON Schema of the output.
295327 Set (" <property_name>" , " <property_value>" ),
296328 })
297329 ```
330+
331+ ** Swift**
332+ ``` swift
333+ RSClient.sharedInstance ()? .track (" <event_name>" , properties : [
334+ " <property_name>" : " <property_value>"
335+ ])
336+ ```
298337</details >
299338
300339<details >
@@ -306,6 +345,15 @@ See [schema.json](schema.json) for a JSON Schema of the output.
306345 ' <property_name>' : ' <property_value>'
307346 });
308347 ```
348+
349+ ** Swift**
350+ ``` swift
351+ let event = MPEvent (name : " <event_name>" , type : .other )
352+ event.customAttributes = [
353+ " <property_name>" : " <property_value>"
354+ ]
355+ MParticle.sharedInstance ().logEvent (event)
356+ ```
309357</details >
310358
311359<details >
@@ -353,6 +401,13 @@ See [schema.json](schema.json) for a JSON Schema of the output.
353401 Set (" <property_name>" , " <property_value>" ),
354402 })
355403 ```
404+
405+ ** Swift**
406+ ``` swift
407+ PostHogSDK.shared .capture (" <event_name>" , properties : [
408+ " <property_name>" : " <property_value>"
409+ ])
410+ ```
356411</details >
357412
358413<details >
@@ -372,7 +427,12 @@ See [schema.json](schema.json) for a JSON Schema of the output.
372427 })
373428 ```
374429
375-
430+ ** Swift**
431+ ``` swift
432+ PendoManager.shared ().track (" <event_name>" , properties : [
433+ " <property_name>" : " <property_value>"
434+ ])
435+ ```
376436</details >
377437
378438<details >
@@ -392,7 +452,12 @@ See [schema.json](schema.json) for a JSON Schema of the output.
392452 })
393453 ```
394454
395-
455+ ** Swift**
456+ ``` swift
457+ Heap.shared .track (" <event_name>" , properties : [
458+ " <property_name>" : " <property_value>"
459+ ])
460+ ```
396461</details >
397462
398463<details >
@@ -403,7 +468,7 @@ See [schema.json](schema.json) for a JSON Schema of the output.
403468 datadogRum .addAction (' <event_name>' , {
404469 ' <property_name>' : ' <property_value>'
405470 });
406-
471+
407472 // Or via window
408473 window .DD_RUM .addAction (' <event_name>' , {
409474 ' <property_name>' : ' <property_value>'
0 commit comments