Jump to content

Google conversion value


pospieszek

Recommended Posts

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&currency_code=PLN&label=v50pCLKmowQQjtaz1wM&guid=ON&script=0"/>

</div>

</noscript>
Link to comment
Share on other sites

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&currency_code=PLN&label=v50pCLKmowQQjtaz1wM&guid=ON&script=0"/>

</div>

</noscript>
Link to comment
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
×
×
  • Create New...