@paywithglide/glide-react 0.0.46 → 0.0.47

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 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
@@ -0,0 +1,2 @@
1
+ export * from './pkg/core'
2
+ export {}