pospieszek Posted February 20, 2017 Share Posted February 20, 2017 Hi, I have to paste conversion value(code) to thank you page but actually I don't know how.I paste tracking code correct but the problem is conversion code.How can I change google_conversion_value to get the value of sales made by the user? <!-- Google Code for page.com - zakup Conversion Page --> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = 100000000; var google_conversion_language = "pl"; var google_conversion_format = "2"; var google_conversion_color = "ffffff"; var google_conversion_label = "v50pCLKmowQQjtaz1wM"; var google_conversion_value = 1.00; var google_conversion_currency = "PLN"; var google_remarketing_only = false; /* ]]> */ </script> <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/100000000/? value=1.00¤cy_code=PLN&label=v50pCLKmowQQjtaz1wM&guid=ON&script=0"/> </div> </noscript> Link to comment Share on other sites More sharing options...
BalzoT Posted February 20, 2017 Share Posted February 20, 2017 You have to add some code in the OrderConfirmationController! make an override and then assign a smarty variable that contains the value you want and the on the orderconfirmation.tpl the script should look something like this <!-- Google Code for page.com - zakup Conversion Page --> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = 100000000; var google_conversion_language = "pl"; var google_conversion_format = "2"; var google_conversion_color = "ffffff"; var google_conversion_label = "v50pCLKmowQQjtaz1wM"; var google_conversion_value = {$myVariable}; var google_conversion_currency = "PLN"; var google_remarketing_only = false; /* ]]> */ </script> <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/100000000/? value=1.00¤cy_code=PLN&label=v50pCLKmowQQjtaz1wM&guid=ON&script=0"/> </div> </noscript> Link to comment Share on other sites More sharing options...
pospieszek Posted February 20, 2017 Author Share Posted February 20, 2017 Ok, but where I can find in filles "Variable"(how it call in my files) of google_conversion_value Link to comment Share on other sites More sharing options...
BalzoT Posted February 20, 2017 Share Posted February 20, 2017 You can't find it, you must create it! Tell me what edition of PrestaShop you are using so I can tell you with more detail. 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