Skip to content

Commit

Permalink
Merge pull request #19 from NTHU-SC/dev/wmou/form
Browse files Browse the repository at this point in the history
Updated gtag for Google Ads
  • Loading branch information
William-Mou authored Jun 29, 2024
2 parents 719f04e + fec0600 commit b408ad4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 14 deletions.
8 changes: 5 additions & 3 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ const { title } = Astro.props;
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-RK9CVR9L8V"
<script
async
src="https://www.googletagmanager.com/gtag/js?id=AW-16621298001"
></script>
<script>
window.dataLayer = window.dataLayer || [];
Expand All @@ -33,9 +35,9 @@ const { title } = Astro.props;
}
gtag("js", new Date());

gtag("config", "G-RK9CVR9L8V");
gtag("config", "AW-16621298001");
</script>

<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link
Expand Down
36 changes: 25 additions & 11 deletions src/pages/form.astro
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@

<!DOCTYPE html>
<html lang="zh-tw">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jump page</title>
<script>
document.addEventListener('DOMContentLoaded', (event) => {
window.location.href = "https://docs.google.com/forms/d/e/1FAIpQLSd1WMKOX-AlzLaYSyGIvlI_oHfOQJixAjgvBoY2V2MQMTkUdw/viewform";
});
</script>
</head>
<head>
<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=AW-16621298001"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

gtag("config", "AW-16621298001");
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>jump page</title>
<script>
document.addEventListener("DOMContentLoaded", (event) => {
window.location.href =
"https://docs.google.com/forms/d/e/1FAIpQLSd1WMKOX-AlzLaYSyGIvlI_oHfOQJixAjgvBoY2V2MQMTkUdw/viewform";
});
</script>
</head>
</html>

0 comments on commit b408ad4

Please sign in to comment.