Skip to content

Commit 856fc41

Browse files
authored
Add conversion
1 parent c7aa279 commit 856fc41

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

Diff for: index.html

+26-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,31 @@
2525
googletag.enableServices();
2626
});
2727
</script>
28+
<!-- Global site tag (gtag.js) - Google AdWords: 964751186 -->
29+
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-964751186"></script>
30+
<script>
31+
window.dataLayer = window.dataLayer || [];
32+
function gtag(){dataLayer.push(arguments);}
33+
gtag('js', new Date());
2834

35+
gtag('config', 'AW-964751186');
36+
</script>
37+
<!-- Event snippet for Tinge Download conversion page
38+
In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. -->
39+
<script>
40+
function gtag_report_conversion(url) {
41+
var callback = function () {
42+
if (typeof(url) != 'undefined') {
43+
window.location = url;
44+
}
45+
};
46+
gtag('event', 'conversion', {
47+
'send_to': 'AW-964751186/JjIaCLawlXoQ0t6DzAM',
48+
'event_callback': callback
49+
});
50+
return false;
51+
}
52+
</script>
2953
</head>
3054
<body>
3155
<div class="wrapper">
@@ -37,8 +61,8 @@ <h1>Tinge</h1>
3761
-->
3862

3963
<ul>
40-
<li></li>
41-
<li><a href="https://github.com/dsame/tinge/releases/download/v1.1/Tinge.app.zip">Download <strong>ZIP File</strong></a></li>
64+
<li><a onclick="return gtag_report_conversion('https://github.com/dsame/tinge/releases/download/v1.1/Tinge.app')" href="https://github.com/dsame/tinge/releases/download/v1.1/Tinge.app">Download <strong>Ready to Install App</strong></a></li>
65+
<li><a onclick="return gtag_report_conversion('https://github.com/dsame/tinge/releases/download/v1.1/Tinge.app.zip')" href="https://github.com/dsame/tinge/releases/download/v1.1/Tinge.app.zip">Download <strong>ZIP File</strong></a></li>
4266
<li></li>
4367
<!--
4468
<li><a href="https://github.com/dsame/tinge/zipball/master">Download <strong>ZIP File</strong></a></li>

0 commit comments

Comments
 (0)