i dont know what to do where
can somone tell my where a need to make the changes
Pour installer Google analitycs
Installer le Nouveau fichier sous son répertoire:
catalog/includes/modules/analitycs/analitics.php
Fichier à modifier:
catalog/includes/footer.php
catalog/checkout_process.php
Intaller dans le footer plutot que dans le header le code de tracking suivant:
<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._setDomainName("VOTREDOMAINE.com");
pageTracker._trackPageview();
<?php
if (strpos($_SERVER['PHP_SELF'], 'checkout_success.php') !== false)
include(DIR_WS_MODULES . 'analytics/analytics.php');
?>
</script>
remplacer VOTREDOMAINE par le nom de votre site et ("UA-XXXXXXX-X") par votre code d'identification analytics.
Installer ensuite dans checkout_process.php après la ligneenv 300)
$products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "n";
Le code suivant:
// GOOGLE ANALYTICS BOF
session_register('google_analytics');
$_SESSION['google_analytics'] = 'UTM:T|'.
$insert_id .
'|Web Sales|'.$order->info['total'].'|'.
$order->info['tax'].'|'.
$order->info['shipping_cost'].'|'.
$order->customer['city'].'|'.
$order->customer['state'].'|'.
$order->customer['country']['iso_code_2']."n".$google_analytics;
// GOOGLE ANALYTICS EOF
N'oubliez pas de cocher sur votre compte google analytics e-commerce.




LinkBack URL
About LinkBacks













Bookmarks