GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - at-internet/piano-analytics-apple: Piano Analytics Apple SDK repository

BranchesTags
Open more actions menu

Latest commit

 

History

64 Commits
64 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
Sources/PianoAnalytics
Sources/PianoAnalytics
 
 
Tests
Tests
 
 
.gitignore
.gitignore
 
 
.swiftlint.yml
.swiftlint.yml
 
 
LICENSE.md
LICENSE.md
 
 
Package.swift
Package.swift
 
 
PianoAnalytics-AppExtension.podspec
PianoAnalytics-AppExtension.podspec
 
 
PianoAnalytics.podspec
PianoAnalytics.podspec
 
 
README.md
README.md
 
 
pod_release.sh
pod_release.sh
 
 

Repository files navigation


Piano Analytics SDK Apple

About The Project

The Piano Analytics Apple SDK allows you to collect audience measurement data for the Piano Analytics solution. It can be used with iOS, watchOS, tvOS and iOS extension applications.

This SDK makes the implementation of Piano Analytics as simple as possible, while keeping all the flexibility of the solution. By using this small library in your applications, and using dedicated and documented methods, you will be able to send powerful events.

It also includes Privacy tagging methods that allow you a perfect management of your tagging depending on the regulation you refer to.

Requirements

Platform Minimum version
iOS / iOS extensions 15.0
tvOS 15.0
watchOS 9.0
macOS (Swift Package Manager only) 13.0

Swift 5.7+ / Xcode 14+ is required.

Starting from 3.2.0 the minimum supported versions were raised (previously iOS 10, tvOS 10, watchOS 3). Applications targeting older OS versions should stay on 3.1.x.

Getting Started

  • Install our library on your project (see below), you have a few possibilities :
    • Using NPM
    • Using our CDN (browser only)
    • Cloning the GitHub project to build a file you will host (browser only)
      • You can use this method if you want to configure your library without additional tagging (ex: like having your site and collect domain already configured in the built file). However, we suggest the NPM method if you use Build Tools (webpack etc.)
  • Check the documentation for an overview of the functionalities and code examples

Using Swift Package Manager

  1. In your application click File > Add Packages...

  2. Paste the url of the public repository in the search box on the top right https://github.com/at-internet/piano-analytics-apple

  3. Select piano-analytics-apple package

  4. Click Add Package

(back to top)

Using Carthage

  1. Update the Cartfile with the following line:

    github "at-internet/piano-analytics-apple" ~> 3.2
  2. Save your Cartfile

  3. Run carthage update --platform iOS with the according platform (you may need to use the --use-xcframeworks option in case of failure)

  4. Add the dependency from Build/PianoAnalytics.xcframework in "Frameworks, Libraries, and Embedded Content"

(back to top)

Using Cocoapods

If you are new to Cocoapods, please refer to CocoaPods documentation

CocoaPods Trunk is read-only starting December 2, 2026, so new versions are published only to the Piano specs repository. Keep the CocoaPods CDN source as well: it serves earlier versions and third-party dependencies. For new integrations we recommend Swift Package Manager.

  1. Update your Podfile with the according line(s)

    source 'https://gitlab.com/piano-public/sdk/ios/legacy/specs.git'
    source 'https://cdn.cocoapods.org/'
    
    # iOS Application
    pod "PianoAnalytics/iOS", ">=3.2"
    
    # tvOS Application
    pod "PianoAnalytics/tvOS", ">=3.2"
    
    # watchOS Application
    pod "PianoAnalytics/watchOS", ">=3.2"
    
    # iOS Application
    pod "PianoAnalytics/appExtension", ">=3.2"

    To avoid conflicts caused by CocoaPods, it's possible to use an independent pod:

    target 'MyProject' do
        pod "PianoAnalytics-AppExtension", ">=3.2"
        use_frameworks!
    end

    If you do not have any other pods, your Podfile should look something like:

    source 'https://gitlab.com/piano-public/sdk/ios/legacy/specs.git'
    source 'https://cdn.cocoapods.org/'
    
    target 'MyProject' do
        pod "PianoAnalytics/iOS", ">=3.2"
        use_frameworks!
    end
  2. Save your Podfile

  3. Run pod install

(back to top)

Usage

  1. Configure your site and collect domain in your application initialization

    import PianoAnalytics
    
    ...
    
    pa.setConfiguration(ConfigurationBuilder()
        .withCollectDomain("log.xiti.com")
        .withSite(123456789)
        .build()
    )
  2. Send events

    pa.sendEvent(Event("page.display", data: [
        "page": "page name", // Event properties
        "page_chapter1": "chapter 1",
        "page_chapter2": "chapter 2",
        "page_chapter3": "chapter 3"
    ]))

    or

    pa.sendEvent(Event(PA.EventName.Page.Display, properties: Set([
        try! Property(PA.PropertyName.Page.Page, "name"),
        try! Property(PA.PropertyName.Page.Duration, true),
        try! Property(PA.PropertyName.Page.Position, "1", forceType: .int)
    ])))

For more examples, please refer to the Documentation

(back to top)

Contributing

Please do not hesitate to contribute by using this github project, we will look at any merge request or issue. Note that we will always close merge request when accepting (or refusing) it as any modification has to be done from our side exclusively (so we will be the ones to implement your merge request if we consider it useful). Also, it is possible that issues and requests from GitHub may take longer for us to process as we have dedicated support tools for our customers. So we suggest that you use GitHub tools for technical purposes only :)

License

Distributed under the MIT License.

(back to top)

Contact

AtInternet a Piano Company - [email protected]

(back to top)

About

Piano Analytics Apple SDK repository

developers.atinternet-solutions.com/piano-analytics/

Topics

analyticsapplepianosdkswift

Resources

Readme
MIT license
Activity
Custom properties

Stars

9 stars

Watchers

4 watching

Forks

12 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.