Skip to content

Commit c9e7f24

Browse files
committed
Add OTB Button Click Tracking (close #1267)
1 parent b13558a commit c9e7f24

File tree

26 files changed

+989
-45
lines changed

26 files changed

+989
-45
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@snowplow/browser-plugin-button-click-tracking",
5+
"comment": "Add Button Click tracking plugin (close #1267)",
6+
"type": "none"
7+
}
8+
],
9+
"packageName": "@snowplow/browser-plugin-button-click-tracking"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@snowplow/tracker-core",
5+
"comment": "Export 'removeEmptyProperties'",
6+
"type": "none"
7+
}
8+
],
9+
"packageName": "@snowplow/tracker-core"
10+
}

common/config/rush/browser-approved-packages.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
"name": "@snowplow/browser-plugin-browser-features",
3535
"allowedCategories": [ "trackers" ]
3636
},
37+
{
38+
"name": "@snowplow/browser-plugin-button-click-tracking",
39+
"allowedCategories": [ "trackers" ]
40+
},
3741
{
3842
"name": "@snowplow/browser-plugin-client-hints",
3943
"allowedCategories": [ "trackers" ]
@@ -58,6 +62,10 @@
5862
"name": "@snowplow/browser-plugin-error-tracking",
5963
"allowedCategories": [ "trackers" ]
6064
},
65+
{
66+
"name": "@snowplow/browser-plugin-focalmeter",
67+
"allowedCategories": [ "trackers" ]
68+
},
6169
{
6270
"name": "@snowplow/browser-plugin-form-tracking",
6371
"allowedCategories": [ "trackers" ]
@@ -118,10 +126,6 @@
118126
"name": "@snowplow/browser-plugin-youtube-tracking",
119127
"allowedCategories": [ "trackers" ]
120128
},
121-
{
122-
"name": "@snowplow/browser-plugin-focalmeter",
123-
"allowedCategories": [ "trackers" ]
124-
},
125129
{
126130
"name": "@snowplow/browser-tracker",
127131
"allowedCategories": [ "plugins", "trackers" ]

common/config/rush/pnpm-lock.yaml

Lines changed: 81 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/config/rush/repo-state.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// DO NOT MODIFY THIS FILE MANUALLY BUT DO COMMIT IT. It is generated and used by Rush.
22
{
3-
"pnpmShrinkwrapHash": "57af2bb401d45bb58b802eb1a04a7ee62b3aa732",
3+
"pnpmShrinkwrapHash": "f22225c05d2747a95a11b5d6c6ee8827084cf800",
44
"preferredVersionsHash": "bf21a9e8fbc5a3846fb05b4fa0859e0917b2202f"
55
}

libraries/tracker-core/src/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ export function buildConsentGranted(event: ConsentGrantedEvent) {
13661366
* @param exemptFields - Set of fields which should not be removed even if empty
13671367
* @returns A cleaned copy of eventJson
13681368
*/
1369-
function removeEmptyProperties(
1369+
export function removeEmptyProperties(
13701370
event: Record<string, unknown>,
13711371
exemptFields: Record<string, boolean> = {}
13721372
): Record<string, unknown> {
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2023 Snowplow Analytics Ltd, 2010 Anthon Pang
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
3. Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)