My request for a solution to an integration project involving the Navigator ticket system was met with not only an immediate response, but with the sample code I immediately used to have our integration solution easily implemented. Alloy Software, as usual, went above and beyond in support of their product.

nnnnnnnnnn

nn

nnn".replace(/"/g, '"' );
var html = document.getElementsByTagName('html')[0];
$('html').on( 'avia-cookie-settings-changed', function(e)
{
var cookie_check = html.className.indexOf('av-cookies-needs-opt-in') >= 0 || html.className.indexOf('av-cookies-can-opt-out') >= 0;
var allow_continue = true;
var silent_accept_cookie = html.className.indexOf('av-cookies-user-silent-accept') >= 0;
var script_loaded = $( 'script.google_analytics_scripts' );
if( cookie_check && ! silent_accept_cookie )
{
if( ! document.cookie.match(/aviaCookieConsent/) || html.className.indexOf('av-cookies-session-refused') >= 0 )
{
allow_continue = false;
}
else
{
if( ! document.cookie.match(/aviaPrivacyRefuseCookiesHideBar/) )
{
allow_continue = false;
}
else if( ! document.cookie.match(/aviaPrivacyEssentialCookiesEnabled/) )
{
allow_continue = false;
}
else if( document.cookie.match(/aviaPrivacyGoogleTrackingDisabled/) )
{
allow_continue = false;
}
}
}
if( ! allow_continue )
{
// window['ga-disable-UA-189950-1'] = true;
if( script_loaded.length > 0 )
{
script_loaded.remove();
}
}
else
{
if( script_loaded.length == 0 )
{
$('head').append( analytics_code );
}
}
});
$('html').trigger( 'avia-cookie-settings-changed' );
})( jQuery );

Source Article