andreladocruz
Total Posts: 322
Joined: 2008-05-07
Brazil
The pagetracker is been duplicated!
pageTracker._trackPageview("catalog/product/view/id/5661/catalog/product/view/id/5661")
previous topic:
http://www.magentocommerce.com/boards/viewthread/23536/
Signature
André Cruz
BioStore Ecommerce Group
Especialista em E-commerce – Loja Virtual 100% Magento
Posted: November 26 2008
| top
TheChief79
Total Posts: 4
Joined: 2008-07-23
Fot me it seems to be working, if i comment out this line:
$queryStr = substr ( $request -> getRequestUri (), strpos ( $request -> getRequestUri (), '?' ));
in app/code/core/Mage/GoogleAnalytics/Block/Ga.php
but a patch which replaces
pageTracker . _trackPageview ( "catalog/product/view/id/8/category/4" );
with
pageTracker . _trackPageview ( "category/product.html" );
would be great.
Posted: November 29 2008
| top
| # 2
andreladocruz
Total Posts: 322
Joined: 2008-05-07
Brazil
sirs,
the problem with the revenue and the gols convertions are still happening.
with this we cannot track our campains well....
what a shame....
add a very good new function (google website optimizer and google base) setting down a working function.
when Magento team will say how to solve this problem?
Regards,
Signature
André Cruz
BioStore Ecommerce Group
Especialista em E-commerce – Loja Virtual 100% Magento
Posted: December 1 2008
| top
| # 5
redpen
Total Posts: 254
Joined: 2008-01-23
Any update on this? It’s incredible that we can no longer track sales values.
Posted: December 11 2008
| top
| # 6
Michael
Total Posts: 826
Joined: 2007-08-31
Can you please try the file attached ?
Or replace these lines
if ( $request = Mage :: app ()-> getFrontController ()-> getRequest ()) { $queryStr = substr ( $request -> getRequestUri (), strpos ( $request -> getRequestUri (), '?' )); }
with the following ones:
if ( $this -> getRequest () && $this -> getRequest ()-> getQuery ()) { $queryStr = '?' . http_build_query ( $this -> getRequest ()-> getQuery ()); }
File Attachments
Ga.php (File Size: 6KB - Downloads: 292)
Posted: December 11 2008
| top
| # 7
redpen
Total Posts: 254
Joined: 2008-01-23
Michael - 11 December 2008 02:45 PM
Can you please try the file attached ?
Or replace these lines
if ( $request = Mage :: app ()-> getFrontController ()-> getRequest ()) { $queryStr = substr ( $request -> getRequestUri (), strpos ( $request -> getRequestUri (), '?' )); }
with the following ones:
if ( $this -> getRequest () && $this -> getRequest ()-> getQuery ()) { $queryStr = '?' . http_build_query ( $this -> getRequest ()-> getQuery ()); }
Done.
I presume this won’t fix the conversion tracking, though, right?
Posted: December 12 2008
| top
| # 8
redpen
Total Posts: 254
Joined: 2008-01-23
redpen - 12 December 2008 12:56 AM
I presume this won’t fix the conversion tracking, though, right?
It doesn’t. Analytics is still not counting our transactions. I think Google Checkout transactions are working, but not ones through the Magento basket. Any word on a fix for this please?
Posted: December 12 2008
| top
| # 9
team_in_medias
Total Posts: 113
Joined: 2008-05-07
Aachen, Germany
Regarding the missing transaction tracking:
The necessary javascript link pageTracker._addTrans(...); doesn’t work in 1.1.8. There is a line break missing, it shows
//<![CDATA[pageTracker._addTrans(...);
instead of
//<![CDATA[
pageTracker._addTrans(”...);
You can add the line break in /app/code/core/Mage/GoogleAnalytics/Block/Ga.php, change line 93 to
$html .= ‘//<![CDATA[’ . “\n”;
The “\n” was missing.
Signature
team in medias GmbH
Magento-Agentur in Hamburg und Aachen
Posted: December 16 2008
| top
| # 10
redpen
Total Posts: 254
Joined: 2008-01-23
Magic, thank you.
Posted: December 16 2008
| top
| # 11
reefgear
Total Posts: 23
Joined: 2007-11-06
The Ga.php file shows,
$html = ‘<script type="text/javascript">’ . “\n”;
$html .= ‘//<![CDATA[’;
$html .= ‘pageTracker._addTrans(’;
$html .= ‘”’ . $order->getIncrementId() . ‘“,’;
$html .= ‘”’ . $order->getAffiliation() . ‘“,’;
$html .= ‘”’ . $order->getGrandTotal() . ‘“,’;
$html .= ‘”’ . $order->getTaxAmount() . ‘“,’;
$html .= ‘”’ . $order->getShippingAmount() . ‘“,’;
$html .= ‘”’ . $address->getCity() . ‘“,’;
$html .= ‘”’ . $address->getRegion() . ‘“,’;
$html .= ‘”’ . $address->getCountry() . ‘“‘;
$html .= ‘);’ . “\n”;
foreach ($order->getAllItems() as $item) {
$html .= ‘pageTracker._addItem(’;
$html .= ‘”’ . $order->getIncrementId() . ‘“,’;
$html .= ‘”’ . $item->getSku() . ‘“,’;
$html .= ‘”’ . $item->getName() . ‘“,’;
$html .= ‘”’ . $item->getCategory() . ‘“,’;
$html .= ‘”’ . $item->getPrice() . ‘“,’;
$html .= ‘”’ . $item->getQtyOrdered() . ‘“‘;
$html .= ‘);’ . “\n”;
would you move the “/n” down to ‘//<![CDATA[’;
Posted: December 20 2008
| top
| # 12