I am measuring conversion rates between two sites - one site (abc.com
) has an iframe with registration form from another (cde.com
). I need to measure REAL conversion rate, which means only successfull registrations. For this I am using server side google analytics library (https://github.com/dancameron/server-side-google-analytics) that sets an event when a registration is successfully completed.
I have to use events, since I have no thankyou.html pages, the other app is fully ajax based.
Using cde.com
as a thankyou.html page gives numbers like 98% conversion, which is not quite accurate. Besides that I only need to track registration that came from the abc.com
.
I was able to achieve the event tracking but now I don't know, how to set the event in a way that tells GA that it came from a certain variation of abc.com
.
This is the code, that sets the event. The parameters are similar to _gaq.push()
$ssga->set_event( "Category", 'Created an account' );
$ssga->send();