avqtools.avanquest.com
Open in
urlscan Pro
2606:4700::6812:729
Public Scan
URL:
https://avqtools.avanquest.com/
Submission: On November 21 via manual from GB — Scanned from GB
Submission: On November 21 via manual from GB — Scanned from GB
Form analysis
0 forms found in the DOMText Content
HOW TO INCLUDE THE JTRACKING(HTML) <head> <script type="text/javascript"> var _gaq = _gaq || []; var jTracking = { cookieName: 'XXX-XXX-XXX', //COOKIE NAME (default value is "jTracking") relativePath: '/ppc/lp1/', //RELATIVE PATH (optional) - works only for localhost forceTracking: { mkey2: 'my custom mkey2', cmp: 'my custom cmp' } //forceTracking (optional) - works only for mkey2, cmp }; </script> <!--INSERT WEBSITE NAME HERE (XXX-XXX-XXX.js or XXX-XXX-XXX.min.js)--> <script src="//PATH-TO-JTRACKING/js/v2/XXX-XXX-XXX.js"></script> ... </head> HOW TO INCLUDE THE JTRACKING(ASP.NET MVC) WEB.CONFIG <appSettings> <!--COOKIE NAME (default value is "jTracking")--> <add key="jTracking:cookieName" value="XXX-XXX-XXX" /> ... </appSettings> INDEX.CSHTML <head> @Html.JTrackingInclude() ... </head> HTML.CS //DO NOT FORGET TO INSTALL nuget - JTracking public static IHtmlString JTrackingInclude(this HtmlHelper html) { //INSERT WEBSITE NAME HERE var src = "//PATH-TO-JTRACKING/js/v2/XXX-XXX-XXX.min.js"; #if DEBUG src = "//PATH-TO-JTRACKING/js/v2/XXX-XXX-XXX.js"; #endif using (HtmlTextWriter writer = new HtmlTextWriter(html.ViewContext.Writer, string.Empty)) jTracking.Html.Include(writer, src); return null; } HOW TO INCLUDE THE GTM NOSCRIPT(HTML) <body> <noscript> <!--INSERT REFERRER URL (current url) HERE--> <iframe src="//PATH-TO-JTRACKING/api/google/tagManager/ns?referrer=XXX-XXX-XXX" height="0" width="0" style="display:none;visibility:hidden"> </iframe> </noscript> ... </body> HOW TO INCLUDE THE GTM NOSCRIPT(ASP.NET MVC) INDEX.CSHTML <body> @Html.JTrackingNoScript() ... </body> HTML.CS //DO NOT FORGET TO INSTALL nuget - JTracking public static IHtmlString JTrackingNoScript(this HtmlHelper html) { using (HtmlTextWriter writer = new HtmlTextWriter(html.ViewContext.Writer, string.Empty)) jTracking.Html.NoScript(writer, "//PATH-TO-JTRACKING/api/google/tagManager/ns"); return null; } JTRACKING API(JAVASCRIPT) JTRACKING.READY FIRES WHEN TRACKING HAVE BEEN LOADED FROM THE SERVER. <script type="text/javascript"> jTracking.ready(function (api) { console.log('ready'); }); </script> JTRACKING.GETTRACKING RETURNS CURRENT TRACKING PARAMS. <script type="text/javascript"> jTracking.ready(function (api) { console.log('ready: ', api.getTracking()); }); </script> JTRACKING.GETCHECKOUTTRACKING RETURNS CURRENT TRACKING PARAMS + GA AND GTM(IF THEY EXIST). <script type="text/javascript"> jTracking.ready(function (api) { console.log('ready: ', api.getCheckoutTracking()); }); </script> JTRACKING.GETVISITORID RETURNS CURRENT VISITOR ID. <script type="text/javascript"> jTracking.ready(function (api) { console.log('visitorId: ', api.getVisitorId()); }); </script> JTRACKING.FORCELEADSCRIPT RUNS LEAD SCRIPT. <script type="text/javascript"> jTracking.ready(function (api) { var forceTracking = { mkey2: 'some value' //optional }; //optional var tracking = { trackId: 25 //optional }; jTracking.forceLeadScript(forceTracking, tracking); }); </script> JTRACKING OUTBOUND LINK <head> ... <script type="text/javascript"> jTracking.outbound = ['wid', 'key1', 'ppc', 'uid', 'ga']; //List of default outbound params </script> ... </head> <body> <a href="http://google.com/" data-jtracking-outbound="key1,key2">outbound</a> <!--if you want to specify outbound--> <a href="http://google.com/?wid=222" jtracking-outbound>outbound</a> <!--if you want to specify query params--> <a href="http://google.com/" jtracking-outbound>outbound</a> <!--short form--> </body> JTRACKING TRACK EVENT LINK <body> <!--category is required--> <!--action is required--> <!--label is optional--> <a href="http://google.com/" data-jtracking-track-event="{'category': 'documents', 'action': 'document uploaded', 'label': 'with choose file'}">data-jtracking-track-event</a> <a href="http://google.com/" jtracking-track-event="{'category': 'documents', 'action': 'document uploaded', 'label': 'with choose file'}">jtracking-track-event</a> <a href="http://google.com/" data-jt-track-event="{'category': 'documents', 'action': 'document uploaded', 'label': 'with choose file'}">data-jt-track-event</a> <a href="http://google.com/" jt-track-event="{'category': 'documents', 'action': 'document uploaded', 'label': 'with choose file'}">jt-track-event</a> </body> JTRACKING TRACK PAGE VIEW LINK <body> <!--pagePath is optional--> <a href="http://google.com/" data-jtracking-track-page-view="{'pagePath': 'convert'}">data-jtracking-track-page-view/a> <a href="http://google.com/" jtracking-track-page-view="{'pagePath': 'convert'}">jtracking-track-page-view</a> <a href="http://google.com/" data-jt-track-page-view="{'pagePath': 'convert'}">data-jt-track-page-view</a> <a href="http://google.com/" jt-track-page-view="{'pagePath': 'convert'}">jt-track-page-view</a> </body> JTRACKING POST VISITOR FORM <script type="text/javascript"> jTracking.ready(function (api) { var json = { firstName: 'Ahmed', //First name is optional lastName: 'Kozlov', //Last name is optional email: 'akozlov@gmail.com', //Email is required formId: 'subscribe', //Form id is required optin: true, //Optin is optional }; api.postVisitorForm(json); }); </script> JTRACKING BEST PRACTICES <!--Always use try catch--> <script type="text/javascript"> try { jTracking.ready(function (api) { console.log('ready'); }); } catch (e) { } </script> <script type="text/javascript"> var checkoutTracking = {}; try { checkoutTracking = jTracking.getCheckoutTracking(); } catch (e) { } </script> <script type="text/javascript"> var tracking = {}; try { tracking = jTracking.getTracking(); } catch (e) { } </script> <script type="text/javascript"> var visitorId = {}; try { visitorId = jTracking.getVisitorId(); } catch (e) { } </script> <script type="text/javascript"> try { jTracking.forceLeadScript({ mkey2: 'some value' }); } catch (e) { } </script> <script type="text/javascript"> try { var json = { firstName: 'Ahmed', //First name is optional lastName: 'Kozlov', //Last name is optional email: 'akozlov@gmail.com', //Email is required formId: 'subscribe' //Form id is required }; jTracking.postVisitorForm(json); } catch (e) { } </script>