@behindthescenes/analytics 0.0.10 → 0.0.12
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/dist/manifest.json +2 -2
- package/docs/advanced-setup.md +5 -0
- package/package.json +3 -2
package/dist/manifest.json
CHANGED
package/docs/advanced-setup.md
CHANGED
|
@@ -93,6 +93,7 @@ const analytics = createBTSAnalytics({
|
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
This:
|
|
96
|
+
|
|
96
97
|
1. Loads the Google tag script with `send_page_view: false`
|
|
97
98
|
2. Allows GA scanners to detect an installed tag
|
|
98
99
|
3. Forwards all events server-side through BTS
|
|
@@ -115,14 +116,17 @@ const analytics = createBTSAnalytics({
|
|
|
115
116
|
The SDK automatically captures and persists:
|
|
116
117
|
|
|
117
118
|
**UTM Parameters:**
|
|
119
|
+
|
|
118
120
|
- `utm_source`, `utm_medium`, `utm_campaign`
|
|
119
121
|
- `utm_term`, `utm_content`
|
|
120
122
|
|
|
121
123
|
**Click IDs:**
|
|
124
|
+
|
|
122
125
|
- `fbclid`, `gclid`, `gbraid`, `wbraid`
|
|
123
126
|
- `li_fat_id`, `msclkid`, `ttclid`
|
|
124
127
|
|
|
125
128
|
**Cookies:**
|
|
129
|
+
|
|
126
130
|
- `_fbp`, `_fbc`
|
|
127
131
|
|
|
128
132
|
### Attribution Data Structure
|
|
@@ -497,3 +501,4 @@ analytics.track = (...args) => {
|
|
|
497
501
|
return originalTrack(...args);
|
|
498
502
|
};
|
|
499
503
|
```
|
|
504
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@behindthescenes/analytics",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "Browser analytics SDK for BTS external-site event tracking and attribution.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "bun ./scripts/build.ts",
|
|
50
50
|
"build:hosted": "bun ./scripts/sync-hosted-bundle.ts",
|
|
51
|
+
"build:hosted:force": "bun ./scripts/sync-hosted-bundle.ts --build",
|
|
51
52
|
"release:version": "bun ./scripts/bump-release-version.ts",
|
|
52
53
|
"type-check": "tsc --noEmit",
|
|
53
54
|
"test": "bun test",
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
"lint:check": "eslint .",
|
|
56
57
|
"release:check": "bun run lint:check && bun run type-check && bun run test && bun run build && npm pack --dry-run",
|
|
57
58
|
"release:publish": "bun run release:version && bun run release:check && npm publish --access public",
|
|
58
|
-
"prepublishOnly": "bun run release:check"
|
|
59
|
+
"prepublishOnly": "bun run release:check && bun ./scripts/sync-hosted-bundle.ts"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
62
|
"@bts/eslint-config": "workspace:*",
|