Skip to content

Commit 38678a7

Browse files
committed
Enhance analytics tracking to capture same page anchors
- Enhanced analytics tracking for same-page anchor clicks to prevent double-counting. - Improved the initialization of analytics and anchor tracking on page load. - Added new dependencies for Babel and Jest to improve testing and build processes. Signed-off-by: Pete Cheslock <[email protected]>
1 parent f647750 commit 38678a7

File tree

7 files changed

+3064
-249
lines changed

7 files changed

+3064
-249
lines changed

babel.config.cjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
presets: [
3+
[
4+
'@babel/preset-env',
5+
{
6+
targets: { node: 'current' },
7+
},
8+
],
9+
],
10+
};
11+
12+

jest.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
testEnvironment: 'jsdom',
3+
verbose: false,
4+
transform: {
5+
'^.+\\.jsx?$': 'babel-jest',
6+
},
7+
moduleNameMapper: {
8+
'^@docusaurus/ExecutionEnvironment$': '<rootDir>/tests/mocks/ExecutionEnvironment.js',
9+
},
10+
};
11+
12+

0 commit comments

Comments
 (0)