PageSourceSearch

https://openit.com/wp-content/themes/astra-child/js/conversion-tracking.js?ver=1790910659

js openit.com collected 2026-10-02 19:27:56 UTC 1,145 bytes, 38 lines download raw bytes

1function gtag_report_conversion(url) {
2    var callback = function () {
3      if (typeof(url) !== 'undefined') {
4        window.location = url;
5      }
6    };
7    gtag('event', 'conversion', {
8      'send_to': 'AW-1070505659/7LqTCMme27gaELu9uv4D',
9      'event_callback': callback
10    });
11    return false;
12}
13
14// Loaded with strategy 'defer' (see open_it_init_scripts()), so this runs after
15// the document is parsed and needs no ready() wrapper; nothing here touches the
16// DOM besides the delegated handler on document. The IIFE keeps the variables
17// out of the global scope.
18(function($){
19
20    // Grab URL params
21    var params = new URLSearchParams(window.location.search);
22    var specialParam = params.get('promo');
23
24    // Page view conversion (only if URL has ?promo=yt-special)
25    if (specialParam === 'yt-special') {
26        gtag('event', 'conversion', {
27          'send_to': 'AW-1070505659/kWgHCIqNq6EbELu9uv4D',
28          'value': 1.0,
29          'currency': 'USD'
30        });
31    }
32
33    // Elementor form submission conversion
34    $(document).on('submit_success', function(){
35        gtag_report_conversion();
36    });
37
38})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.