-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgroup1.html
36 lines (32 loc) · 1.01 KB
/
group1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Redirecting...</title>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-3RB8LD60FN"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-3RB8LD60FN');
</script>
</head>
<body>
<script>
// Read the value of the "key" parameter from the URL
const urlParams = new URLSearchParams(window.location.search);
const key = urlParams.get('key');
const course_id = urlParams.get('course_id');
gtag('event', 'zpp', {
'key': `${key}`,
'course_id': `${course_id}`
});
// Redirect to the URL with the key value included
if (key != null) {
const redirectUrl = `https://portal.zentrale-pruefstelle-praevention.de/portfolio/gkv-sv/kursdetail/${key}`;
window.location.replace(redirectUrl);
}
</script>
</body>
</html>