Swift Package mirror for the Triple Whale mobile tracking SDK on iOS.
This repository exists only to distribute the SDK to Swift Package Manager consumers. Each tagged release publishes a TriplePixelSDK.xcframework.zip as a release asset and pins it from Package.swift as a .binaryTarget.
In Xcode:
- File → Add Package Dependencies…
- URL:
https://github.com/Triple-Whale/triple-pixel-sdk-spm - Dependency rule: Up to next major —
0.1.0 - Add
TriplePixelSDKto your target.
Or in your Package.swift:
dependencies: [
.package(
url: "https://github.com/Triple-Whale/triple-pixel-sdk-spm",
from: "0.1.0"
)
]- iOS 14.0+
- Xcode 14+
import TriplePixelSDK
// First arg = your Triple Whale shop ID (the identifier registered for your
// store in Triple Whale, e.g. `myshop.myshopify.com`). Do not pass your
// storefront domain or shop name.
TriplePixel.Companion.shared.doInit(
shopName: "your-tw-shop-id",
msCountry: "US",
curr: "USD"
)
TriplePixel.Companion.shared.pageLoad(
e: PageLoadEvent(
url: "/home",
productId: nil, productName: nil, productPrice: nil,
productVariant: nil, searchTerm: nil, collection: nil
)
)Full API reference and consent / privacy documentation: https://kb.triplewhale.com/.
If you believe you have found a security vulnerability in this SDK, please report it privately — do not open a public issue or post it in any public forum.
Email tw-privacy@triplewhale.com with a description of the vulnerability, steps to reproduce, and the SDK version. We aim to acknowledge reports within two business days and to share a remediation plan within seven.
MIT.