1 2var clevertap = { event: [], profile: [], account: [], onUserLogin: [], region: 'in1', notifications: [], privacy: []}; 3// replace with the CLEVERTAP_ACCOUNT_ID with the actual ACCOUNT ID value from your Dashboard -> Settings page 4clevertap.account.push({ "id": cleverTapId }); 5clevertap.privacy.push({ optOut: false }); //set the flag to true, if the user of the device opts out of sharing their data 6clevertap.privacy.push({ useIP: false }); //set the flag to true, if the user agrees to share their IP data 7(function () { 8 var wzrk = document.createElement('script'); 9 wzrk.type = 'text/javascript'; 10 wzrk.async = true; 11 wzrk.src = ('https:' == document.location.protocol ? 'https://d2r1yp2w7bby2u.cloudfront.net' : 'http://static.clevertap.com') + '/js/clevertap.min.js'; 12 var s = document.getElementsByTagName('script')[0]; 13 s.parentNode.insertBefore(wzrk, s); 14})(); 15 16 17function RegisterGUserIdInClevertap(guserid) { 18 // Ensure clevertap is defined and ready before pushing data 19 if (typeof clevertap !== 'undefined' && clevertap !== null) { 20 //clevertap.onUserLogin.push({ 21 // "Site": { 22 // "Identity": guserid, // String or number 23 // } 24 //}); 25 26 // Wait a short time to ensure the data is pushed before clearing 27 setTimeout(function () { 28 // Check if clevertap.clear() is available before calling 29 if (typeof clevertap.clear === 'function') { 30 clevertap.clear(); 31 } else { 32 33 } 34 }, 200); 35 } 36} 37 38 39function RegisterDashboardClevertapUser() { 40 $.ajax({
41 method: "POST", 42 url: "/SignIn/GetGuserId", 43 data: { "mode": "1" }, 44 async: false, 45 success: function (x) { 46 RegisterGUserIdInClevertap(x); 47 }, 48 error: function (XHR, exception) { 49 50 }, 51 }); 52}
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.