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

Fire tracking code when a search button is clicked?

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

I have the following conversion code and search button. I've added zeros and Xs in place of the actual ids and labels for this example. I can get the code to load on page load but I'm not sure how to get the code to load when someone clicks the search button. Is this possible?

Thanks!

 

<!-- Google Code for Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 000000000;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "xxxxxxxxxxxxxxx";
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/000000000/?label=xxxxxxxxx&amp;guid=ON&amp;script=0"/>
</div>
</noscript>

<!--Search button-->
<input type="submit" id="MapSearch" name="MapSearch" value="#application.CMTranslate.translate('Search')#" class="button" />
1 Expert replyverified_user

How do I fire tracking code when a search button is clicked?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I'm hoping someone can assist me with this.

I have the following conversion code and search button. I've added zeros and Xs in place of the actual ids and labels for this example. I can get the code to load on page load but I'm not sure how to get the code to load when someone clicks the search button. Is this possible?

Thanks!

<!-- Google Code for Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 000000000;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "xxxxxxxxxxxxxxx";
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/000000000/?label=xxxxxxxxx&amp;guid=ON&amp;script=0"/>
</div>
</noscript>

<!--Search button-->
<input type="submit" id="MapSearch" name="MapSearch" value="#application.CMTranslate.translate('Search')#" class="button" />

Fire tracking code when a search button is clicked?

Rising Star
# 3
Rising Star

Hi Robert,

 

Have you tried following these instructions? https://support.google.com/adwords/answer/6331304?hl=en

 

Best,

 

John

 

How do I fire tracking code when a search button is clicked?

Rising Star
# 4
Rising Star

Hi Robert,

 

See my answer to your more recent question here: https://www.en.advertisercommunity.com/t5/Advanced-Features/Fire-tracking-code-when-a-search-button-...

 

Best,

 

John