jQuery indexOf error for xdomain.js cross-domain link script
问题 I'm using a script to detect cross-domain links for google analytics cross-domain tracking. The original script (xdomain.js) was provided by the great folks at Luna Metrics. Here is the script with my modifications, hat-tip to educardocereto here on StackOverflow for the suggested changes to enable setAllowAnchor in the GATC (I've commented line 40 where the console error first points to): var jQueryXD = jQuery.noConflict(); /* I added var because page loads 2 versions of jquery - not the