I've been experimenting with Google Analytics in a unique way and I'll do my best to explain it here.
On my holding site, I'm loading a form using jQuery. The main site has its own tracking code while the ajax loaded content uses a different tracking code, and surprisingly, everything is functioning well.
_gat._createTracker('UA-XXXXXXXX-2', 'myTracker');
var _gaq = _gaq || [];
_gaq.push(['myTracker._setAccount', 'UA-XXXXXXXX-2']);
The form consists of multiple parts and for each completed part, I send a page track event with a custom URL, which also seems to be working smoothly.
_gaq.push(['myTracker._trackPageview', '/form/stage1/']);
However, I'm facing an issue with tracking events for changes within the form (such as dropdown selections). While the events are visible in Google Analytics, they all show up under "/" instead of "/form/stage1/", probably because it's coming from the main site where the form is embedded.
_gaq.push(['myTracker._trackEvent', 'Sample', ddValue]);
So my question is, can I specify a different page URL for the _trackEvent function to track against?
Thank you in advance.