Author Topic: Google Analytics  (Read 1719 times)

sfsylz

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Google Analytics
« on: March 29, 2007, 12:40:20 PM »
I am looking at using Google Analytics on my site. I am using the Junior version of Worldpay. I would like to track the customers accross the Worldpay pages and back to my site.  I know that I need to add some javascript call to either the header.jsp or footer.jsp, but in order to continue tracking the customer accross the worldpay pages I think that I need to use something like this:

<form action="http://newdomain.com/form.cgi" onSubmit="javascript:__utmLinkPost(this)">

from the confirm checkout page to the Worldpay payment pages. Is there a way to incorporate an onSubmit or javascript in the one of the modules when doing a post?

I'm more than a bit stumped on this one.

Cheers,
Steve

paolo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 119
    • View Profile
Re: Google Analytics
« Reply #1 on: March 29, 2007, 03:34:28 PM »
Hi Steve,

The actual jsp used to do the post to the external gateway is called CatalogCheckoutExternalPaymentBody.jsp . I assume that you can add your javascript by adding an onSubmit to the form in this jsp.

Hope this helps,

-Paolo

sfsylz

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: Google Analytics
« Reply #2 on: March 29, 2007, 06:06:45 PM »
That looks like it will work!

Thanks!

Steve