MediaWiki:Common.js: Difference between revisions

removed leading whitespace from Adobe Analytics block
m (updated landing page code - copied from beta)
(removed leading whitespace from Adobe Analytics block)
Line 1: Line 1:
/* code for new landing page */
/* code for new landing page */
// test if we're on the home page
if (/Main_Page/.test(document.location.href)) {
if (/Main_Page/.test(document.location.href)) {
     var el = document.querySelector('#firstHeading');
     var el = document.querySelector('#firstHeading');
Line 77: Line 76:


/* Adobe Analytics added 2019-05-16 */
/* Adobe Analytics added 2019-05-16 */
        window.utag_data={
window.utag_data={
            'site_id': 'FamilySearch',
    'site_id': 'FamilySearch',
'page_channel': 'Wiki',
    'page_channel': 'Wiki',
            'page_detail': document.location.pathname, //'Home' for the homepage or a unique page title for other pages
    'page_detail': document.location.pathname, //'Home' for the homepage or a unique page title for other pages
};
};


        (function(a,b,c,d){
(function(a,b,c,d){
            a='//tags.tiqcdn.com/utag/lds/familysearch/prod/utag.js';
    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;
    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);
    a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a);
        })();
})();


function getCookie(name) {
function getCookie(name) {
53,890

edits