Jump to content
osCoders

Google Analytics module

Recommended Posts

OMG, i just realized that my checkout_success.php was overwritten by checkout_process.php. If you look at the comment at the top of my previous post, you will see that is says:

 

/*

$Id: checkout_process.php 1750 2007-12-21 05:20:28Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2007 osCommerce

 

Released under the GNU General Public License

*/

 

I need to find a back up!

Share this post


Link to post
Share on other sites

I lucked out and had a backup of the original. *PHEW*

 

Anyways, I did move forward with the line-by-line instructions yesterday and waiting overnight for the analytics to pull the latest stats from the logs. GA is not reporting transactions in the e-commerce view. The only glaring difference between my implementation and the instructions is that I am using the latest GA code, and not the deprecated code the instructions provide. Here's my code, if anyone can identify any trouble points I'd greatly appreciate it. Oh, one more question, why is it that the GA script in the head, has a call to include analytics.php INTO the head of the document inside of the script tags? That doesn't sound right... to me at least. After all if you look at analytics.php it has db calls in it. Any light on the matter is greatly appreciated.

 

Thanks ALL!

 

checkout_success.php (TOP)

 

<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">

<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">
try {
var pageTracker = _gat._getTracker("UA-XXXXXX-1"); // YES ITS USING A REAL ACCT #
pageTracker._trackPageview();
} catch(err) {}
<?php include(DIR_WS_MODULES . 'analytics/analytics.php'); 	?>
</script>


</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

 

checkout_success.php (BTM)

 

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer-tracker.php'); ?>
<!-- footer_eof //-->

 

footer.php

 

<!-- GOOGLE TRACKING CODE -->
<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">
try {
var pageTracker = _gat._getTracker("UA-XXXXXXX-1"); // YES ITS USING A LIVE ACCT #
pageTracker._trackPageview();
} catch(err) {}
</script>

Share this post


Link to post
Share on other sites

The problem I am having is to keep accurate numbers! From time to time we have to place test order on the site to verify our shopping cart works. These test order skew our data. Is there a known way to stop this?


plasma.jpg

Share this post


Link to post
Share on other sites

Hi guys,

 

I think I came across a tricky one and so far didn't find the solution... I installed the Google Analytics module for osCommerce, everything works great, except the checkout_success.php page is not tracking. Even the page itself is not showing up in GA content, so the code is absolutely not working on that page... and obviously the ecommerce data is not tracking as well... Everything else is working, the funnel is showing all the steps, etc.etc. Except this last page.

 

Please take a look ate this very short code that I copied from the live checkout_success.php 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">
try {
var pageTracker = _gat._getTracker("UA-1180598-1");
pageTracker._trackPageview();
} catch(err) {}

pageTracker._addTrans(
"138","affiliation","33.85","tax","9.85","Los Angeles","California","United States"
);

pageTracker._addItem(
"138","34479","NYLON BALL 0.062500", 1.587500 mm, 1/16 Grd:2 Lot:34479","Nylon Balls, Stock","0.08","300");

pageTracker._trackTrans();

</script>

 

 

The only idea that comes to my mind what causes the problem is the fact that the product (NYLON BALL 0.062500", 1.587500 mm, 1/16 Grd:2 Lot:34479) has a " in it........ I hope this is not the case..... Do you think so???

 

I am pretty experienced with installing Analytics (at least until now I believed so...) but I am simply not able to find a solution for this...

 

FYI the original code looks like this:

 

<link rel="stylesheet" type="text/css" href="stylesheet.css">

<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">
try {
var pageTracker = _gat._getTracker("UA-1180598-1");
pageTracker._trackPageview();
} catch(err) {}

<?php
include(DIR_WS_MODULES . 'analytics/analytics.php'); 
?>

</script>

 

Any help / fresh ideas would be appreciated!

 

Best,

 

Adam

Share this post


Link to post
Share on other sites

I can't track, where the customers are coming from - in Google Analytics it says that all customers are coming from babygear.dk (my own domain).

 

How do I to setup Google Adwords on my domain with a shared SSL

 

The shop domain is: http://www.babygear.dk

The shared ssl url is:https://babygear.bghost.dk/

 

My footer.php script:

 

<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-xx-x");

pageTracker._initData();

pageTracker._setDomainName("babygear.dk");

pageTracker._trackPageview();

<?php

if (strpos($_SERVER['PHP_SELF'], 'checkout_success.php') !== false)

include(DIR_WS_MODULES . 'analytics/analytics.php');

?>

 

</script>

Share this post


Link to post
Share on other sites
Hello All,

 

This is the support thread for the "Google Analytics module".

 

This module allow you to integrade the advanced e-commerce Analysis provided by the new Google service named Analytics ( more info on the official page: http://www.google.com/analytics/ ).

 

 

Best regards,

Clement

 

Hello is it working with E-Commerce 3.0 Alpha 5 version ? Because I cann't find directory catalog/includes/.

 

Thx

Share this post


Link to post
Share on other sites
Hello is it working with E-Commerce 3.0 Alpha 5 version ? Because I cann't find directory catalog/includes/.

 

Thx

No, it is not. This is a contribution for v2.x versions of osCommerce. However, the principle would be the same for v3, but you would have to modify it to put it somewhere that v3 can pull it in. I don't know enough about v3 to give you specific instructions on how to do this.

 

--Glen

Share this post


Link to post
Share on other sites

Hi,

 

I use several currencies in my oscommerce store. Is there a way to handle this when sending data to google analytics e-commerce?

 

Thanks!

Share this post


Link to post
Share on other sites

This is my first post here and I was having problems with Analytics module for quite some time. I managed to fix it and here is my observation

 

Based on new ecommerce tracking support from Google, can someone confirm that this mod needs to be updated with latest changes.

 

Here is the link: http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer=55528

 

In instructions it says to paste the following code to checkout_success.php

 

	<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-xxxxxxx-x");
	pageTracker._initData();
	pageTracker._trackPageview();

	<?php 
		include(DIR_WS_MODULES . 'analytics/analytics.php'); 
	?>

</script>

 

But the link above has different paramaters/varibles you name it

 

<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">
try {                                                       
 var pageTracker = _gat._getTracker("UA-XXXXX-1");
 pageTracker._trackPageview();

 pageTracker._addTrans(

   "1234",                                     // Order ID
   "Mountain View",                            // Affiliation
   "18.28",                                    // Total
   "1.29",                                     // Tax
   "5",                                        // Shipping
   "San Jose",                                 // City
   "California",                               // State
   "USA"                                       // Country
 );

 pageTracker._addItem(
   "1234",                                     // Order ID
   "DD44",                                     // SKU
   "T-Shirt",                                  // Product Name 
   "Green Medium",                             // Category
   "11.99",                                    // Price
   "1"                                         // Quantity
 );

 pageTracker._trackTrans();
} catch(err) {}</script>

therefore pageTracker._initData(); seems redundant

 

 

Now if you compare what analytics.php has in bottom of its file when it calls functions, you see some of the data is missing

 

Here is what bottom of analytics.php has

 

pageTracker._addTrans(
<?php echo $transaction_string; ?>

);
<?php echo $item_string; ?>
pageTracker._trackTrans();

 

If you compare to Google guidelines example above, you see there are some functions missing. I believe that teh correct code in bottom of analytics.php should be

 

pageTracker._addTrans(
<?php echo $transaction_string; ?>
);

pageTracker._addItem(                /// NEW
<?php echo $item_string; ?>
);                                   /// NEW
pageTracker._trackTrans();

 

 

With these changes, my ecommerce reports are more reliable now and I can measure transactions in efficient way.

Edited by arsenal

Share this post


Link to post
Share on other sites

I've installed this today and mostly it's working great :)

The install instructions are good and clear, although I did need to fiddle around a little with my checkout_success.php to make sure that the additional code wasn't inside PHP tags.

 

But anyway, I have it installed and reporting on order totals fine, which is great :) but for some reason, when I look at products view within GA, I only see the first product of each order and none of the others.

Has anyone got any tips on how I can tweak this to register all products within an order?

thanks in advance,

James :)

Edited by newclearbomb

Share this post


Link to post
Share on other sites

The current version of the analytics module sets the value in ot_total as the total amount in the transaction string. If you run a store with taxes (e.g. a German store), then the total value includes all taxes and shipping. In the analytics reports the Value transaction volume (Umsatz) is displayed including taxes and shipping.

However the value in the item string (Produktumsatz) is excluding any taxes!

 

So I would rather prefer to display my transaction volume without any taxes but including shipping.

Has someone ever thought about that???

 

The solution would be to replace $analytics_total in thev transaction string with a new variable without taxes which is defined as e.g. $analytics_total_netto = $analytics_total - $analytics_tax;

 

Can anyone please give me some tipps if this is correct and if this is really working as it should?

Share this post


Link to post
Share on other sites

I'm having some difficulties with osCommerce Online Merchant v3.0 Alpha 5 and Google Analytics

 

According to Step 3 of Installation instructions, I have to edit footer.php in the directory catalog/includes/

In 3.0, it's changed to "application_bottom.php", so it's not a problem, BUT

Step 4: injecting google script in php, I receive following error:

Parse error: syntax error, unexpected '<' in /var/www/oscommerce/includes/application_bottom.php on line 19

line 19 states:

<script type="text/javascript">

WTF?!

 

I've tried different ways, including Google's: writing script to a file and then inserting it to php: <?php include_once("analyticstracking.php") ?> - the result is different: page parses successfully, but Google doesn't see code installed thus not tracking it...

 

Please advice.

Share this post


Link to post
Share on other sites

Initially I would say you would probably get a quicker answer by asking in the osC 3 support forums.

 

But often, the code error will say one line when it is several lines above that is causing the error. Most likely you are inserting the code within a block using <> as delimiters and therefore the code sees your added code as an error, even though there couldn't possible be anything wrong with it. Give us the code from about 10 lines above... or perhaps in the 3.0 support forums.


Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Share this post


Link to post
Share on other sites

Ok, I'll ask support there, meantime here's whole application_bottom.php:

 

<?php

/*

$Id$

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2005 osCommerce

 

This program is free software; you can redistribute it and/or modify

it under the terms of the GNU General Public License v2 (1991)

as published by the Free Software Foundation.

*/

 

$osC_MessageStack->add('debug', 'Количество запросов: ' . $osC_Database->numberOfQueries() . ' [' . $osC_Database->timeOfQueries() . 's]', 'warning');

 

$osC_Services->stopServices();

 

<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-blah-x");

pageTracker._initData();

pageTracker._setDomainName("blah.com");

pageTracker._trackPageview();

</script>

?>

 

BTW, "Количество запросов" is russian, it's localised.

Edited by m0rtal

Share this post


Link to post
Share on other sites

Hello,

 

Has any one got this contribution working - receiving the data in GA's E-Commerce report? I can see the number of "visitors" is increasing but i tried to place a few orders but still not receiving any data such as the Sales of products generated informaiton... Here is what i did:

 

(1). I upload the analytics.php file in catalog/includes\modules\analytics folder.

 

(2). I past the code in the sts_template.html page before </body> with the Web Property ID google provided.

<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">
try {
var pageTracker = _gat._getTracker("xx-xxxxxx-x");
pageTracker._initData();
pageTracker._trackPageview();
} catch(err) {}</script>

(3). I paste this code in the catalog/checkout_success.php

<script type="text/javascript"> 
?php
//google analytics e-commerce
     require(DIR_WS_MODULES . 'analytics/analytics.php')?>
// end google analytics e-commerce
</script>

 

(4). I enabled "E-Commerce" to "Yes" in GA account.

 

Does any one know which step I missed?

 

In order to receive data of my e-commerce report, do I have to have a google AdWord campaign?

Also how long does GA take to collect all the data? (When is the best time to check the report?)

 

Thank you!!

Share this post


Link to post
Share on other sites

I updated the code to work with Google's recommended asynchronous syntax, and it works great except when multiple products are ordered, then only the last item is reported by the '_addItem' function.

 

How do we loop through to add each product in the order to the '_addItem' function?

 

Thanks,

Eric_K

 

// ############## Google Analytics - start ###############

// Get order id
   $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "' order by date_purchased desc limit 1");
   $orders = tep_db_fetch_array($orders_query);
   $order_id = $orders['orders_id'];

// Get order info for Analytics "Transaction line" (affiliation, city, state, country, total, tax and shipping)

// Set value for  "affiliation"
   $analytics_affiliation = 'Your Store Name Here';

// Get info for "city", "state", "country"
   $orders_query = tep_db_query("select customers_city, customers_state, customers_country from " . TABLE_ORDERS . " where orders_id = '" . $order_id . "' AND customers_id = '" . (int)$customer_id . "'");
   $orders = tep_db_fetch_array($orders_query);

   $totals_query = tep_db_query("select value, class from " . TABLE_ORDERS_TOTAL . " where orders_id = '" . (int)$order_id . "' order by sort_order");
// Set values for "total", "tax" and "shipping"
   $analytics_total = '';
   $analytics_tax = '';
   $analytics_shipping = '';

    while ($totals = tep_db_fetch_array($totals_query)) {

       if ($totals['class'] == 'ot_total') {
           $analytics_total = number_format($totals['value'], 2, '.', '');
           $total_flag = 'true';
       } else if ($totals['class'] == 'ot_tax') {
           $analytics_tax = number_format($totals['value'], 2, '.', '');
           $tax_flag = 'true';
       } else if ($totals['class'] == 'ot_shipping') {
           $analytics_shipping = number_format($totals['value'], 2, '.', '');
           $shipping_flag = 'true';
       }

    }

// Prepare the Analytics "Transaction line" string

   $transaction_string = '"' . $order_id . '"," ' . $analytics_affiliation . '","' . $analytics_total . '","' . $analytics_tax . '","' . $analytics_shipping . '","' . $orders['customers_city'] . '","' . $orders['customers_state'] . '","' . $orders['customers_country'] . '"';

// Get products info for Analytics "Item lines"

   $item_string = '';
   $items_query = tep_db_query("select products_id, products_model, products_name, final_price, products_quantity from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . $order_id . "' order by products_name");
   while ($items = tep_db_fetch_array($items_query)) {
       $category_query = tep_db_query("select p2c.categories_id, cd.categories_name from " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where p2c.products_id = '" . $items['products_id'] . "' AND cd.categories_id = p2c.categories_id AND cd.language_id = '" . (int)$languages_id . "'");
       $category = tep_db_fetch_array($category_query);

  $item_string = '"' . $order_id . '"," ' . $items['products_model'] . '","' . $items['products_name'] . '","' . $category['categories_name'] . '","' . number_format($items['final_price'], 2, '.', '') . '","' . $items['products_quantity'] . '"';
   }

// ############## Google Analytics - end ###############
?>

_gaq.push(['_addTrans',
<?php echo $transaction_string; ?>
]);

_gaq.push(['_addItem',
<?php echo $item_string; ?>
]);

_gaq.push(['_trackTrans']);

 

Add the asynchronous syntax tracking code to checkout_success.php, either at the bottom of footer.php OR before </head>.

 

Replace UA-xxxxxxx-x with your Google Analytics web property ID (available in your Google Analytics account).

 

<?php // bof: Google Analytics Asynchronous Syntax Ecommerce Tracking ?>
<script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-xxxxxxx-x']);
 _gaq.push(['_trackPageview']);
<?php 
include(DIR_WS_MODULES . 'analytics/analytics.php'); 
?>
 (function() {
   var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
   ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
   var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
</script>
<?php // eof: Google Analytics Asynchronous Syntax Ecommerce Tracking ?>

Share this post


Link to post
Share on other sites

Hello,

 

I followed the instruction to install the module. It's been for two week but my GA account still not receiving any records. It shows "0.00% Ecommerce Conversion Rate " on the report. The shop is working normal. Does any one know what the problems might be? Like how can I check if the checkout_success.php pass the value to GA account?

 

Thank you very much!!

Share this post


Link to post
Share on other sites

Hello,

 

I followed the instruction to install the module. It's been for two week but my GA account still not receiving any records. It shows "0.00% Ecommerce Conversion Rate " on the report. The shop is working normal. Does any one know what the problems might be? Like how can I check if the checkout_success.php pass the value to GA account?

 

Thank you very much!!

 

I followed also the instructions and everything is looking normal in the reporting of analytics, but i have the same problem. I placed different test-orders, also from different clients (bacause of filtering my own IP) but the e-commerce page stays on 0,00% :( Is there maybe something with the domain to be filled out? My installation is pretty standard like www.domain.com/catalog, however i changed 'catalog' into 'winkel' which is dutch for store...

 

Can anybody please come up with some clues please, i'm pretty stucked.

 

Thanks

Share this post


Link to post
Share on other sites

How do I get this to work with paypal standard?

 

I set up a sales tunnel and when my customer leaves /checkout_confirmation > Paypal > /checkout_success.php - It shows a drop off at checkout_confirmaion.php because and even if client arrives at checkout_success.php, it doesn't count it presumably because it doesn't know its the same person.

 

Can anybody help?


Contributions installed: Purchase without Account / STS/ All Products/ Header Tags Controller

Share this post


Link to post
Share on other sites

Installed this and all works fine with IE and Firefox. The following with Chrome:

 

Works fine if the url is entered as follows: http://jeepswag.com/b/

 

Error message when the url is entered as: http://www.jeepswag.com/b/

 

Here's the error:

Fatal error: Call to a member function add_current_page() on a non-object in /home1/fouxfixc/public_html/b/includes/application_top.php on line 344

 

An additional question about Step 4: 4. in the ORIGINAL footer.php place the following script at the end of the file. I'm assuming that this gets placed before the last "?>" I've tried it both ways.

Share this post


Link to post
Share on other sites

My site is tracking pretty well, but it is still not counting sales conversions. I have re-checked the code several times and verified that the tracking codes are correct. Is there something "typical" that you guys have seen that would cause it to not track the converted sale?

Share this post


Link to post
Share on other sites

I am sure you all solved your problems by now, and who knows, the most recent code probably works but if any of you are using the g analytics to track your sales in google analytics the code changes when you implement the newest asynchronous g_push type of tracking... Below is how I mangled it out. The key to this is the items in a transaction are repeated several times depending on the amount of different items in a transaction and each time through the item must be pushed onto the stack and then finally sealed so to speak with the end of the transaction marker... Enjoy!

 


   $transaction_string = '"' . $order_id . '"," ' . $analytics_affiliation . '","' . $analytics_total . '","' . $analytics_tax . '","' . $analytics_shipping . '","' . $orders['customers_city'] . '","' . $orders['customers_state'] . '","' . $orders['customers_country'] . '"';
?>
_gaq.push(['_setAccount', 'UA-226314-2']);
_gaq.push(['_trackPageview']);
_gaq.push(['_addTrans',
<?php $transaction_string ?>
]);
// Get products info for Analytics "Item lines"
<?php
   $item_string = '';
   $items_query = tep_db_query("select products_id, products_id, products_model, products_name, final_price, products_quantity from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . $order_id . "' order by products_name");
   while ($items = tep_db_fetch_array($items_query)) {
       $category_query = tep_db_query("select p2c.categories_id, cd.categories_name from " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where p2c.products_id = '" . $items['products_id'] . "' AND cd.categories_id = p2c.categories_id AND cd.language_id = '" . (int)$languages_id . "'");
       $category = tep_db_fetch_array($category_query);


     $item_string = '"' . $order_id . '"," ' . $items['products__id'] . '"," ' . $items['products_model'] . '","' . $items['products_name'] . '","' . $category['categories_name'] . '","' . number_format($items['final_price'], 2, '.', '') . '","' . $items['products_quantity'] . '"';
?>
   _gaq.push(['_addItem',
    <?php echo $item_string; ?>
    ]);
<?php
   }
?>
_gaq.push(['_trackTrans']);

// ############## Google Analytics - end ###############

Share this post


Link to post
Share on other sites

After looking at our data for the past year, quarter and month (or any time period really) I found GA consistent missed 20-25% of our transactions.

I have noticed this for a long time and silently hoped it would get better. I've read tons of forums concerning this problem, but no one succeed to fix the problem... You'll fin more explanations on http://www.google.com/support/forum/p/Google+Analytics/thread?tid=02bfeb8f83433120&hl=en

 

 

To sum up, during the last month, we lost about 10% of transactions and SAFARI 5 visitors represent 7,40 % of the whole traffic and only 3.5% of ecommerce transactions tracked . As it seems impossible to fix the problem I would like to know if someone knows if it's possible to develop a small chron using Analytics API :-))

 

Every night, it loops overs all the transactions of the day recorded in OsCommerce database, check if this transaction number exists in GA, if not it generates the tracker corresponding to the whole transaction and submit it to Analytics. The problem is : HOW TO SPECIFY THE ORDER DATE TO THE TRACKER ??

 

I know this solution is not a final issue, but it will allow us to get EXACT TRANSACTIONS AMOUNTS even if it's not linked to the cookie information of the original visitor ( every chron generated transactions would not be tracked as a conversion...)

 

Give me some advices please, I really would like to find a solution in order to get every morning relevant informations about visitors+transactions in my GA homepage !

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×