AdWords
2K members online now
2K members online now
Use AdWords conversion tracking and reporting to measure your results. Have a question about Google Analytics? Post it here, on the Google Analytics Community!
Guide Me
star_border
Reply

Any Idea How to track conversion in php with no conversion value

Follower ✭ ☆ ☆
# 1
Follower ✭ ☆ ☆

in php
i might need to  replace this code

var google_conversion_value = 0;


with 

if (<? echo $totalValue ?>) {
var google_conversion_value = <? echo $totalValue ?>
}


is this correcrt optoin or not

Re: Any Idea How to track conversion in php with no conversion value

Explorer ✭ ✭ ☆
# 2
Explorer ✭ ✭ ☆
Hi Haris

If you are not selling any goods and just want to track newsletter conversions or similar then you can set any value you want with this code:

var google_conversion_value = 0;

On the other hand, if you want to track the conversion value of sales in a shop it gets more complicated. The code and the implementation entirely depend on what e-ecommerce shop system you are using. Google provided a sample code and you can't just copy and paste it into your shop system.

There are plugins for several shop systems which will do what you need. If you can't find a plugin for your shop you will need to develop your own solution or get someone who can do it for you.

Regards
Aleks