gormgo Posted June 16, 2022 Share Posted June 16, 2022 Site URL: https://www.concussionalliance.org/ Hello, I'm trying figure out what the custom code is. Thanks for letting me know <meta name="msvalidate.01" content="4AED7DB99B0E107628A7001A68E43C71" /> <script type="text/javascript" src="//script.crazyegg.com/pages/scripts/0081/0288.js" async="async"></script> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script> // Put our initial page url into a variable var initialhref = window.location.href; // Run the foo function every 1.5s window.setInterval(foo, 1500); function foo(){ // Put the current url into a variable var currenthref = window.location.href; //If the current url isn't the same as the initial url we need to track a virtual page view if ( currenthref != initialhref ) { // The next 2 lines store the folder & page name of the current url in a variable var arrsplitvpv = currenthref.split('http://www.mydomain.com/'); var trackurl = arrsplitvpv[1]; // The next looks to see which of the index pages is active and grabs its page title. This code is template specific to the Flatiron template. Other templates will use different selectors. var pagetitle = $("#grid .sqs-dynamic-data-active .project-title h2").text(); // Now push the virtual page view over to Google Analytics _gaq.push(['_trackPageview', '/vpv/' + trackurl, pagetitle ]); // Finally, reset the initialhref to currenthref so that we can detect any further url changes initialhref = currenthref; }; } </script> <script id="mcjs">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/8348b8ace6951c3bc03f66e4d/203b96f4e3419477745edb365.js");</script> Link to comment
creedon Posted June 17, 2022 Share Posted June 17, 2022 It appears to all be custom code. Is your question what is this custom code doing or what affect does it have on my site? Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment