AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

3.7K members online now
3.7K members online now
Dive into advanced features like Remarketing, Flexible Bid Strategies, AdWords Editor, and AdWords Scripts
Guide Me

Conversion Tracking Code

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭



I add the following code to my web page,


<!-- Google Code for Booking Conversion Page -->
<script type="text/javascript">
/ <![CDATA[ /
var google_conversion_id = 933681372;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "VGl4CI7Z5GcQ3LGbvQM";
var google_conversion_value = @TotalAmount;
var google_conversion_currency = "EUR";
var google_remarketing_only = false;
/ ]]> /
<script type="text/javascript" src="//">
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//;currency_code=EUR&amp;l...



Still not verified, is it cause that i changed the value to "@totalAmount"..


do anyone have as an idea ?

2 Expert replyverified_user

Re: Conversion Tracking Code

Top Contributor
# 2
Top Contributor

When did you install this code? Also have you verified the tag? You could use Tag assistant to check this OR you could simply do a test conversion. That means click on your own ad and complete the transaction and then see if it counts towards a conversion or not. Refer to this help doc for more details:-


Re: Conversion Tracking Code

Collaborator ✭ ☆ ☆
# 3
Collaborator ✭ ☆ ☆
I am not really familiar with this syntax '@TotalAmount;' to the best of my knowledge @ is not allowed as variable name in JavaScript.
If you are not sure about this variable or if you dont want to pass any value in conversion you can leave it blank.
Hope this helps
Regards, Nik
LinkedIn  |   @nikhilparachure | My Blog

Re: Conversion Tracking Code

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭
Almost 24 Hours for now, just contacted with Google to see what is wrong.

Tag is not Verified.

Thank you.!

Re: Conversion Tracking Code

Top Contributor
# 5
Top Contributor
Hi Kaan K,

If that's how the script appears on the page, you'll get a Javascript error in a couple of places that will cause the conversion not to be recorded. "Not verified" means no conversions have been recorded.

What should happen here is your shopping cart should fill in the actual value of the sale where you have @TotalAmount. I'd suggest, first, you do a test conversion and look at the generated code. If @TotalAmount is still in the code, your shopping cart isn't replacing that with the actual value. How you get the cart to insert that value depends on your CMS. I can't advise you there, but I've never seen the @ sign used to indicate such replacement. Then again, I haven't seen everything.

Best of Luck!

petebardo -- Deadhead doing AdWords