Setting up page goals in Analytics when using progressive enhancement to load content using jquery .load

Posted by sam on Pro Webmasters See other posts from Pro Webmasters or by sam
Published on 2012-05-17T14:11:33Z Indexed on 2013/06/27 22:29 UTC
Read the original article Hit count: 361

I'm using jQuery .load to load content in from other pages into my homepage, so that Google can still see whats going on I've made the <a> tags go to the pages but over ride them in the JavaScript so instead of going the that page it just loads in the content from that page to the main page.

Normaly I would just make the page /contact.html a goal.

Can I still get it to work as a goal if the content is being loaded in? Can I do something like when the user clicks <a href="contact.html" id="load-contact">contact</a> it logs the clicking of the <a> tag as a goal, rather than the actaul page being visited?

© Pro Webmasters or respective owner

Related posts about google-analytics

Related posts about goal-tracking