Skip to content

Commit cbd1411

Browse files
Consent cookies
1 parent 9062029 commit cbd1411

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

docs/index.html

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,9 @@ <h3>🍪 We use cookies</h3>
992992
</div>
993993
<h1>OpenAPI GUI Editor</h1>
994994
<p class="subtitle">Visual OpenAPI specification editor for IntelliJ IDEA, PyCharm, WebStorm and all JetBrains IDEs. No YAML syntax required.</p>
995-
<a href="https://plugins.jetbrains.com/plugin/27118-openapi-gui-editor/pricing" class="cta-primary" onclick="gtag('event', 'purchase', {'event_category': 'Conversion', 'event_label': 'Hero Start Free Trial', 'value': 1}); gtag('event', 'click', {'event_category': 'CTA', 'event_label': 'Hero Start Free Trial'})">
995+
<a href="https://plugins.jetbrains.com/plugin/27118-openapi-gui-editor/pricing" class="cta-primary"
996+
onclick="gtag_report_conversion('https://plugins.jetbrains.com/plugin/27118-openapi-gui-editor/pricing')"
997+
>
996998
<span>Start Free Trial</span>
997999
<span></span>
9981000
</a>
@@ -1120,7 +1122,7 @@ <h2 class="section-title">Loved by Teams Worldwide</h2>
11201122
<div class="container">
11211123
<h2>Ready to Design APIs Visually?</h2>
11221124
<p>Transform your API workflow with visual OpenAPI editing</p>
1123-
<a href="https://plugins.jetbrains.com/plugin/27118-openapi-gui-editor/pricing" class="cta-primary" onclick="gtag('event', 'purchase', {'event_category': 'Conversion', 'event_label': 'Final Start Free Trial', 'value': 1}); gtag('event', 'click', {'event_category': 'CTA', 'event_label': 'Final Start Free Trial'})">
1125+
<a href="https://plugins.jetbrains.com/plugin/27118-openapi-gui-editor/pricing" class="cta-primary" onclick="gtag_report_conversion('https://plugins.jetbrains.com/plugin/27118-openapi-gui-editor/pricing')">
11241126
<span>Start Free Trial</span>
11251127
<span></span>
11261128
</a>
@@ -1267,5 +1269,25 @@ <h2>Ready to Design APIs Visually?</h2>
12671269
console.log('Consent Mode initialized. Use resetConsent() to reset settings.');
12681270
});
12691271
</script>
1272+
1273+
<!-- Event snippet for Outbound click conversion page
1274+
In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. -->
1275+
<script>
1276+
function gtag_report_conversion(url) {
1277+
var callback = function () {
1278+
if (typeof(url) != 'undefined') {
1279+
window.location = url;
1280+
}
1281+
};
1282+
gtag('event', 'conversion', {
1283+
'send_to': 'AW-17380820062/K3kXCMrE7PwaEN6I6d9A',
1284+
'value': 1.0,
1285+
'currency': 'CZK',
1286+
'event_callback': callback
1287+
});
1288+
return false;
1289+
}
1290+
</script>
1291+
12701292
</body>
12711293
</html>

0 commit comments

Comments
 (0)