-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser-data.html
41 lines (35 loc) · 1.15 KB
/
user-data.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
36
37
38
39
40
41
<!DOCTYPE html>
<html>
<head>
<title>My Test Page</title>
<!-- Global site tag (gtag.js) - Google Ads -->
<script async src="https://gtm-ctfe-preprod.corp.google.com/gtag/js?id=AW-593608426"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-593608426');
</script>
<!-- Event snippet for Purchase conversion page -->
<script>
function sendConversion() {
gtag('event', 'conversion', {
'send_to': 'AW-593608426',
'transaction_id': ''
});
}
function sendFormSubmit() {
gtag('event','form_submit', {form_id: 'email'});
}
</script>
</head>
<body>
<h1>Preprod OGT AW-593608426 test for User data </h1>
<form action="/user-data.html" id="foo" method="GET">
input: <input type="email" id="email" name="email"><br>
<input type="submit" value="Submit">
<button type="button" onClick="sendConversion()">Send converstion to AW-593608426</button>
<button type="button" onClick="sendFormSubmit()">Send gtag form submit event</button>
</form>
</body>
</html>