Skip to content

Leveraging Swift functionBuilders as a means of writing declarative in app analytics.

License

Notifications You must be signed in to change notification settings

Jake-Prickett/analytics-builder-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AnalyticsBuilder Demo

Leverages Swift functionBuilders to construct an analytic event to fire.

Example Syntax:

// Trackable Objects
let testObj1 = TestTrackable1()
let testObj2 = TestTrackable2()

// Populate parameters
func testParameterPopulator() -> [String: String] {
  return [
    "test1": "success",
    "test2": "fail",
    "test3": "name",
  ]
}

// Execute analytic!
Track {
    Action("test") // action vs. state
    Parameters(
        testObj1,
        testObj2
    )
    Parameters(testParameterPopulator)
    Parameter("John", "Wick")
    Debug() // Debug mode
}

About

Leveraging Swift functionBuilders as a means of writing declarative in app analytics.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages