Can anyone help me incoprorate Google Analytics triggering for AJAX page requests in iUI?
Here's a tutorial on how it's done in general: http://www.google.com/support/analytics/bin/answer.py?answer=33985 I'm just wondering how best to implement the above in iUI's JS. In comparing iUI and Google's code example, this would be my guess. Look ok? Beginning at Line 69: req.onreadystatechange = function() { if (req.readyState == 4) { if (replace) replaceElementWithSource(replace, req.responseText); else { var frag = document.createElement("div"); frag.innerHTML = req.responseText; iui.insertPages(frag.childNodes); } if (cb) setTimeout(cb, 1000, true); /* ADDITION HERE */ if (req.status == 200) { urchinTracker("/iUI_ajax_load" ); } /* END ADDITION */ } }; --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
