Maybe it might be helpful to make the checkout confirmation page the "checkout_sucess" page... then only Google Checkout would not be showing up in the reports... I might show more conversions but that is better than only showing 5% of conversions (other transactions show but with no money). Is there an easy way to move the code so that the "confirmation" page collects conversions?
Thanks
Shrimp-Gumbo
Just a little more information about my issue:
The many transactions that are missing revenue amounts when clicked on do show the revenue amounts for the individual items. I am running 1.3.7
I have looked over the google_analytics.php file and don't see any issues with the google_analytics['ot_total'] ... not that it means an awful lot.
I just installed this mod and everything seems to be working O.K. except I'm getting warnings when going to secure pages. Can someone please give me direction on how to solve this problem?
Thanks so much,
Lisa
Very nice add-on ... thanks! New zenner question re: GA ...
I'm very new to php and don't have the foggiest ideawhere to find the </body> tag of the create_account_success page to install conversion tracking on this page ... assuming of course that this is actually required and that your add-on only installs conversion tracking for the checkout_success page
Can someone please help by providing a pointer?
Thanks, Jaap
www.canopyxchange.za.net
Hello Shrimp,
Conversion tracking for "create_account_success" page
Maybe I confused the issue by mentioning that (I think) the mod ONLY installs conversion tracking for "checkout_success" page. I may be underestimating the mod here ...
BUT I actually want to know how to track "create_account_success" page conversions (SGA setting I missed? Or else where to find </body> tag?). My store sells high-value items, the prices of which are only displayed to "logged-in" users. It is the number of user registrations that I want to track. I hope this clarifies.
Thanks, Jaap
canopyxchange.za.net
Thanks Shrimp,
Here's the bottom section from the source of the Log in page:
<script type="text/javascript">
<!--
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
//-->
</script>
<script type="text/javascript">
<!--
var pageTracker = _gat._getTracker('UA-3523887-1');
pageTracker._initData();
pageTracker._trackPageview('Login');
//-->
</script>
##############################____
I didn't make any other changes. Does this help at all?
Lisa
Jaap,
econcepts can answer best but it places a code on all pages.... checkout_success would show as an ecommerce transaction.... I think in order to determine where the users are coming from that register you would have to include an additional code that you can find in the analytics documentation... I would suggest modifying the google_analytics.php file in the templates by adding another if statement after the:
if($page_directory == 'includes/modules/pages/checkout_success')
{
$order_query = "select orders_id, " . GOOGLE_ANALYTICS_TARGET . "_city as city, " . GOOGLE_ANALYTICS_TARGET . "_state as state, " . GOOGLE_ANALYTICS_TARGET . "_country as country from " . TABLE_ORDERS . " where customers_id = :customersID order by date_purchased desc limit 1";
$order_query = $db->bindVars($order_query, ':customersID', $_SESSION['customer_id'], 'integer');
$order = $db->Execute($order_query);
$google_analytics = array();
$totals = $db->Execute("select value, class from " . TABLE_ORDERS_TOTAL . " where orders_id = '" . (int)$order->fields['orders_id'] . "' and (class = 'ot_total' or class = 'ot_tax' or class = 'ot_shipping')");
while (!$totals->EOF) {
$google_analytics[$totals->fields['class']] = number_format($totals->fields['value'], 2, '.', '');
$totals->MoveNext();
}
to check to see if the customer is on the page you desire then modify the above if statement to spit out the required code to track that page.
Good Luck!
Shrimp
Bookmarks