AdWords
2.9K members online now
2.9K 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

Possible to use it without <noscript&gt;?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello,

 

Is it possible to use the conversion tracking without the <noscript> tag? And will it works fine?

 

Regards.

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author mike h
December 2016

Possible to use it without &lt;noscript&amp;gt;?

Top Contributor
# 4
Top Contributor

Hi mike h,

 

I answered this question on your other thread.

 

Ok, you answered my question, WordPress with woocommerce. You are adding tracking to the thankyou.php page? I would need to look at all the code you have in that file to make any suggestions as to how to fix it.

 

Basically, you get the order total with $order->get_total(), then divide that by 6 and round to 2 places, then place that value in your conversion code.

 

Something like this:

<php?$order_total = $order->get_total();

$conv_value = round($order_total/6,2); ?>

 

Then in the conversion code:

if (<?php echo $conv_value?>){
var google_conversion_value = (<?php echo $conv_value?>);
}

 

And the noscript:

<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/868736224/?value=<?php echo $conv_value?>&amp;currency_co...>
</div>
</noscript>

 

If you're not a programmer, I suggest you get help.

 

Pete

 

petebardo -- Deadhead doing AdWords

View solution in original post

Possible to use it without <noscript&gt;?

Participant ✭ ✭ ✭
# 2
Participant ✭ ✭ ✭

Hi Mike,

The noscript bit is only required for browsers which do not have javascript enabled so it won't be a good idea to remove <noscript> tag from conversion tracking.

 

Hope this helps.

 

Thanks

Re: Possible to use it without <noscript&gt;?

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Hello,

 

Thanks for reply.

I want to track the purchase on my site and to place order the users need Javascript enable or he can't.

My code is on the thankyou.php page(i'm on wordpress and using woocommerce) so it will work normally without it?

 

Regards.

Marked as Best Answer.
Solution
Accepted by topic author mike h
December 2016

Possible to use it without &lt;noscript&amp;gt;?

Top Contributor
# 4
Top Contributor

Hi mike h,

 

I answered this question on your other thread.

 

Ok, you answered my question, WordPress with woocommerce. You are adding tracking to the thankyou.php page? I would need to look at all the code you have in that file to make any suggestions as to how to fix it.

 

Basically, you get the order total with $order->get_total(), then divide that by 6 and round to 2 places, then place that value in your conversion code.

 

Something like this:

<php?$order_total = $order->get_total();

$conv_value = round($order_total/6,2); ?>

 

Then in the conversion code:

if (<?php echo $conv_value?>){
var google_conversion_value = (<?php echo $conv_value?>);
}

 

And the noscript:

<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/868736224/?value=<?php echo $conv_value?>&amp;currency_co...>
</div>
</noscript>

 

If you're not a programmer, I suggest you get help.

 

Pete

 

petebardo -- Deadhead doing AdWords

Re: Possible to use it without &lt;noscript&amp;gt;?

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

Hello,

 

Really thanks i have the good value in the noscript now, i was sure i have tried this but apparently not.

I will see if it's works because it won't work before and i say you if it's good.

 

Regards.

Possible to use it without &lt;noscript&amp;gt;?

Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭

Hello,

 

Just to say it's perfect, thank you very much.

 

Regards.

Possible to use it without &lt;noscript&amp;gt;?

Top Contributor
# 7
Top Contributor

Hi Mike h,

 

I'm glad I could help. I use WP and woocommerce, so I was going to have to figure this out sooner or later anyway. Your question helped both of us and, hopefully, others on this forum.

 

Pete

petebardo -- Deadhead doing AdWords