@paywithglide/glide-react 0.0.46 → 0.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/dist/core.d.ts +2 -0
- package/dist/core.js +797 -0
- package/dist/glide.js +360 -927
- package/dist/pkg/GlideDeposit.d.ts +27 -1
- package/dist/pkg/analytics.d.ts +220 -0
- package/dist/pkg/core.d.ts +5 -0
- package/dist/pkg/index.d.ts +1 -0
- package/dist/pkg/useGlideBuy.d.ts +3 -2
- package/dist/pkg/useGlideCall.d.ts +3 -2
- package/dist/pkg/useGlideDeposit.d.ts +3 -2
- package/dist/pkg/useGlidePay.d.ts +3 -2
- package/package.json +11 -2
- /package/dist/{index.d.ts → glide.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1 +1,41 @@
|
|
|
1
1
|
React components for https://paywithglide.xyz
|
|
2
|
+
|
|
3
|
+
## Features
|
|
4
|
+
|
|
5
|
+
- Easy integration of crypto deposits and payments
|
|
6
|
+
- Support for multiple payment methods (wallet, transfer, fiat onramps)
|
|
7
|
+
- Customizable themes
|
|
8
|
+
- **Analytics event tracking** - Track user behavior, conversions, and drop-offs with your own analytics platform
|
|
9
|
+
|
|
10
|
+
## Analytics
|
|
11
|
+
|
|
12
|
+
GLIDE SDK now supports comprehensive analytics event tracking. You can integrate with platforms like Amplitude, Mixpanel, or Segment to:
|
|
13
|
+
|
|
14
|
+
- Track user behavior through the deposit flow
|
|
15
|
+
- Measure conversion rates and identify drop-off points
|
|
16
|
+
- Analyze payment method performance
|
|
17
|
+
- Monitor errors and transaction times
|
|
18
|
+
|
|
19
|
+
See [ANALYTICS.md](./ANALYTICS.md) for detailed documentation and examples.
|
|
20
|
+
|
|
21
|
+
### Quick Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { GlideDeposit } from "@paywithglide/glide-react";
|
|
25
|
+
|
|
26
|
+
const glide = new GlideDeposit({
|
|
27
|
+
app: "your-app",
|
|
28
|
+
recipient: "0x...",
|
|
29
|
+
|
|
30
|
+
// Add analytics callback
|
|
31
|
+
onAnalyticsEvent: (event) => {
|
|
32
|
+
// Forward to your analytics platform
|
|
33
|
+
amplitude.track(event.type, event);
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Documentation
|
|
39
|
+
|
|
40
|
+
- [Analytics Documentation](./ANALYTICS.md)
|
|
41
|
+
- [Main Documentation](https://docs.paywithglide.xyz)
|
package/dist/core.d.ts
ADDED