MediaWiki:Common.js: различия между версиями

нет описания правки
(New Help Overlay)
Нет описания правки
Строка 6: Строка 6:
}
}


/* Adobe Analytics added 2019-05-16 */
/* Add Adobe Launch 2020-11-12
window.utag_data={
* There is a corresponding section in override.php to load the library */
    'site_id': 'FamilySearch',
$(document).ready(function(){
    'page_channel': 'Wiki',
  // information to record
    'page_detail': document.location.pathname, //'Home' for the homepage or a unique page title for other pages
  var config = {
};
        'site_id': 'FamilySearch',
        'site_language': mw.config.get('wgContentLanguage'), // e.g. 'en'
        'page_channel': 'Wiki',
        'page_detail': document.location.pathname + document.location.search, //'Home' for the homepage or a unique page title for other pages; including querystring
        'page_type': 'wiki',
        'visitor_state': 'lo'
    };
    // send it
    _satellite.track('page_view', config);
    console.log("recorded page view for " + config.page_detail);
});
/* End Adobe Launch code */


(function(a,b,c,d){
    a='//tags.tiqcdn.com/utag/lds/familysearch/prod/utag.js';
    b=document;c='script';d=b.createElement(c);d.src=a;d.type='text/java'+c;d.async=true;
    a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a);
})();


function getCookie(name) {
function getCookie(name) {