Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7556857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:58:18+00:00 2026-05-30T11:58:18+00:00

I have a subpage in a jquery mobile page where I’d like to insert

  • 0

I have a subpage in a jquery mobile page where I’d like to insert att Google adwords conversion cookie. But using the traditional snippet from Adwords doesn’t work. On Android it even makes the page go blank.

Anyone done this before?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:58:20+00:00Added an answer on May 30, 2026 at 11:58 am

    You are probably loading the conversion script later on the page by doing something like this:

    (function(){
        var s=document.getElementsByTagName('script')[0];
        var ga=document.createElement('script');
        ga.type='text/javascript';
        ga.async=true;
        ga.src='http://www.googleadservices.com/pagead/conversion.js';
        s.parentNode.insertBefore(ga,s);
    })();
    

    Or using a jQuery function to load scripts that is similar to the function above. Turns out that you can’t include the conversion.js script in this manner because it uses document.write to write the img tag on the page. Because it uses document.write some browsers will remove everything from the page and replace the content with the output of document.write, which in this case is an empty gif.

    You better use the default tag provided by google to mark a conversion. If you need to load it without a page refresh just open an iframe to a page that contains this tracking code.

    <script type="text/javascript"> 
      var google_conversion_id = 1234567890;
      var google_conversion_language = "en_US";
      var google_conversion_format = "1";
      var google_conversion_color = "666666";
      var google_conversion_label = "Purchase";
      if (10.0) {
        var google_conversion_value = 10.0
      }
    </script>
    <script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">
    </script>
    <noscript>
      <img height=1 width=1 border=0 
      src="http://www.googleadservices.com/pagead/conversion/1234567890/?value=10.0&label=Purchase&script=0">
    </noscript>
    

    Of course this is just an example. You should use your own code that have your unique conversiod_id.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using jquery mobile. I would like to navigate from one page to
Have just started using Google Chrome , and noticed in parts of our site,
I have a form, like so: <form action= method=post> <select name=pageType> <option value=main>Main Page</option>
I have this code i have been using....but i need a conditional where it
I have a user control on the master page and I would like to
I have implemented JQuery FullCalendar by fetching the events dynamically from an aspx page.
i have an input using the jquery autocomplete plugin. with this i want to
I have a menu that I've created using jquery that pops-up on certain button
I have an XML Sitemap like this <?xml version=1.0 encoding=utf-8 ?> <Menu> <MenuItem Name=Page
I have several tabs in my application, and each tab loads a different sub-page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.