Transfer information from abc.com to cde.com using the query string:
<iframe src="cde.com?variation=1"></iframe>
Then include this information in the form on cde.com:
if (isset($_GET['variation'])) { echo '<input type="hidden" name="variation" value="' . $_GET['variation'] . '" />'; }
Then, in your event sending code, provide information about the options:
if (isset($_POST['variation'])) { if ($_POST['variation'] == 2) { $ssga->set_event( "Category", 'Created an account', 'Variation 2' ); } else $ssga->set_event( "Category", 'Created an account', 'Variation 1' ); } else $ssga->set_event( "Category", 'Created an account, 'Variation 1' ); $ssga->send();
source share