mica94 Posted August 23, 2012 Share Posted August 23, 2012 Bonjour, je souhaite mettre un code de conversion google adwords au niveau des inscription. Lorsqu'on veut traquer les achats, on met le code dans order-confirmation.tpl Ou le mettre lorsqu'un internaute finalise son inscription ? Tout est géré dans auhentication.php, il n'y a pas de .tpl de retour Merci Link to comment Share on other sites More sharing options...
mica94 Posted August 23, 2012 Author Share Posted August 23, 2012 (edited) dans authentication.php apres ces lignes. if (Tools::isSubmit('submitAccount') OR Tools::isSubmit('submitGuestAccount')) { $create_account = 1; if (Tools::isSubmit('submitAccount')) self::$smarty->assign('email_create', 1); /* New Guest customer */ if (!Tools::getValue('is_new_customer', 1) AND !Configuration::get('PS_GUEST_CHECKOUT_ENABLED')) $this->errors[] = Tools::displayError('You cannot create a guest account.'); if (!Tools::getValue('is_new_customer', 1)) $_POST['passwd'] = md5(time()._COOKIE_KEY_); if (isset($_POST['guest_email']) AND $_POST['guest_email']) $_POST['email'] = $_POST['guest_email']; Peut-on faire echo '<!-- Google Code for Inscription Conversion Page --> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = xxxxxxxx; var google_conversion_language = "en"; var google_conversion_format = "2"; var google_conversion_color = "ffffff"; var google_conversion_label = "xxxxxxxxxx"; var google_conversion_value = 0; /* ]]> */ </script> <script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/xxxxxxx/?value=0&label=xxxxxxxamp;guid=ON&script=0"/> </div> </noscript>'; Merci Edited August 23, 2012 by mica94 (see edit history) Link to comment Share on other sites More sharing options...
mica94 Posted August 27, 2012 Author Share Posted August 27, 2012 Bonjour, pesonne n'a une idée ? Merci Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now