Skip to content

Commit abace1e

Browse files
committed
Remove Google Analytics from demo
1 parent 85f3a53 commit abace1e

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

demo/index.html

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -240,19 +240,5 @@ <h1>Best served on bigger screen sizes</h1>
240240
skipBtn.addEventListener('click', handler, false);
241241
}
242242
</script>
243-
<!-- Google tag (gtag.js) -->
244-
<script
245-
async
246-
src="https://www.googletagmanager.com/gtag/js?id=G-91TCN6QF4G"
247-
></script>
248-
<script>
249-
window.dataLayer = window.dataLayer || [];
250-
function gtag() {
251-
dataLayer.push(arguments);
252-
}
253-
gtag('js', new Date());
254-
255-
gtag('config', 'G-91TCN6QF4G');
256-
</script>
257243
</body>
258244
</html>

tests/PageObjectModel.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ export async function gotoVoyagerPage(
5454
search.append('withCredential', searchParams.withCredential.toString());
5555
}
5656

57-
// Disable Google Analytics
58-
await page.route('https://www.googletagmanager.com/gtag/js*', (route) =>
59-
route.fulfill({ status: 200, body: '' }),
60-
);
61-
6257
const response = await page.goto(
6358
(searchParams?.path || '/') + '?' + search.toString(),
6459
);

0 commit comments

Comments
 (0)