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

Google Adwords multiple scripts in one page

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I asked same question here too.

I need to put two (google adwords) scripts in same page. Is it safe to put two scripts at same page ?

<!-- Google Code for 2016-05 transaction tracking Conversion Page --> <script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = xxxxxxx;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "asdsad"; 
var google_conversion_value = 0.00; 
var google_conversion_currency = "USD"; 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/xxxxxxx/?value=0.00&currency_code=USD&label=sasdsaM&guid=ON&script=0"/>
</div>
</noscript>

The other adowrds conversion script

<!-- Google Code for 2016-05 transaction tracking Conversion Page --> <script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = xxxxxxx;
    var google_conversion_language = "en";
    var google_conversion_format = "3";
    var google_conversion_color = "ffffff";
    var google_conversion_label = "dsadsa"; 
    var google_conversion_value = 5.00; 
    var google_conversion_currency = "USD"; 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/xxxxxxx/?value=5.00&currency_code=USD&label=sasdsaM&guid=ON&script=0"/>
    </div>
    </noscript>

I just want to know if both scripts run fine simentaniously ? Can there be any problem on loading one script twice and declearing google_conversion_xxx variables twice ?

If not safe then what is other way around for this ?

2 Expert replyverified_user

Re: Google Adwords multiple scripts in one page

Rising Star
# 2
Rising Star
I have seen plenty of accounts where multiple AdWords conversion codes appear on the same page, and work. I do recall seeing this with conversion values, and while it should work I am not certain of it.

Almost always multiple conversion codes are not necessary. Google assigns the conversion to the campaign, ad group and keyword that triggered the visit.

I can think of two circumstances where you might want to have two conversions on one page:

1. You value the conversion differently depending on the keywords. For example someone who searches for "free" might generate a lead that is worth having, but not as valuable.

2. You have many conversion points, each with multiple factors, like free and paid, monthly and weekly. Four thank you pages, each with two conversion codes.

Re: Google Adwords multiple scripts in one page

Top Contributor
# 3
Top Contributor
Hi Junaid Bin S,

Yes, you can do that. If you have two AdWords accounts that both use the same landing page, this makes sense. Conversions will be recorded for the correct account. If the conversion code blocks both came from the same account, you will end up double counting every conversion.

Best of Luck!

Pete
petebardo -- Deadhead doing AdWords

Re: Google Adwords multiple scripts in one page

Explorer ✭ ☆ ☆
# 4
Explorer ✭ ☆ ☆
Hi Junaid,

I completely agree with what RobSkelton and Petebardo mentioned.

One thing I'd like to add is that maybe you'd want to deploy these via Google Tag Manager instead, to reduce the number of tags on your site and the possibility of some of them not firing, especially if your site is a bit slow to load. Just a thought.

Regards,
Alex