cdp-lite-sdk 0.1.5 → 0.1.6
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 +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
- ✅ **Anonymous Tracking** - Track users before identification
|
|
34
34
|
- ✅ **Page/Screen Views** - Built-in page and screen tracking
|
|
35
35
|
- ✅ **TypeScript Support** - Full TypeScript definitions
|
|
36
|
-
- ✅ **Framework Agnostic** - Works with React, Vue, Angular,
|
|
36
|
+
- ✅ **Framework Agnostic** - Works with React, Vue, Angular, Vanilla JS
|
|
37
37
|
- ✅ **Browser & Node.js** - Universal JavaScript support
|
|
38
38
|
- ✅ **Queue Management** - Smart event queueing and flushing
|
|
39
39
|
- ✅ **Debug Mode** - Easy debugging with console logs
|
|
@@ -120,7 +120,7 @@ const cdp = new CdpLiteSdk({
|
|
|
120
120
|
|
|
121
121
|
---
|
|
122
122
|
|
|
123
|
-
<h2 id="
|
|
123
|
+
<h2 id="configuration">⚙️ Configuration</h2>
|
|
124
124
|
|
|
125
125
|
### Configuration Options
|
|
126
126
|
|
|
@@ -181,7 +181,7 @@ const cdp = new CdpLiteSdk({
|
|
|
181
181
|
|
|
182
182
|
---
|
|
183
183
|
|
|
184
|
-
<h2 id="
|
|
184
|
+
<h2 id="security-features">🔒 Security Features</h2>
|
|
185
185
|
|
|
186
186
|
### Automatic Data Encryption
|
|
187
187
|
|
|
@@ -222,7 +222,7 @@ const cdp = new CdpLiteSdk({
|
|
|
222
222
|
|
|
223
223
|
---
|
|
224
224
|
|
|
225
|
-
<h2 id="
|
|
225
|
+
<h2 id="core-methods">📚 Core Methods</h2>
|
|
226
226
|
|
|
227
227
|
### 1. Track Events
|
|
228
228
|
|
|
@@ -437,7 +437,7 @@ cdp.destroy();
|
|
|
437
437
|
|
|
438
438
|
---
|
|
439
439
|
|
|
440
|
-
<h2 id="
|
|
440
|
+
<h2 id="advanced-usage">🔥 Advanced Usage</h2>
|
|
441
441
|
|
|
442
442
|
### Batch Processing
|
|
443
443
|
|
|
@@ -594,7 +594,7 @@ function App() {
|
|
|
594
594
|
|
|
595
595
|
---
|
|
596
596
|
|
|
597
|
-
<h2 id="
|
|
597
|
+
<h2 id="typescript-support">🎯 TypeScript Support</h2>
|
|
598
598
|
|
|
599
599
|
Full TypeScript support with type definitions.
|
|
600
600
|
|
|
@@ -628,7 +628,7 @@ cdp.track('purchase', eventProps);
|
|
|
628
628
|
|
|
629
629
|
---
|
|
630
630
|
|
|
631
|
-
<h2 id="
|
|
631
|
+
<h2 id="api-reference">📖 API Reference</h2>
|
|
632
632
|
|
|
633
633
|
### Constructor
|
|
634
634
|
|
|
@@ -661,7 +661,7 @@ const sdk = new CdpLiteSdk(config)
|
|
|
661
661
|
|
|
662
662
|
---
|
|
663
663
|
|
|
664
|
-
<h2 id="
|
|
664
|
+
<h2 id="examples">💡 Examples</h2>
|
|
665
665
|
|
|
666
666
|
### E-commerce Tracking
|
|
667
667
|
|
|
@@ -774,7 +774,7 @@ cdp.track('form_submitted', {
|
|
|
774
774
|
|
|
775
775
|
---
|
|
776
776
|
|
|
777
|
-
<h2 id="
|
|
777
|
+
<h2 id="troubleshooting">🐛 Troubleshooting</h2>
|
|
778
778
|
|
|
779
779
|
### Events Not Sending
|
|
780
780
|
|