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 5970339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:21:40+00:00 2026-05-22T20:21:40+00:00

I need to register multiple conversions with google from a single page. In Chrome

  • 0

I need to register multiple conversions with google from a single page. In Chrome and Firefox, this works fine. In IE, it seems that the page / call is getting cached and subsequently only one conversion is sent.

I have tried adding no-cache meta tags, but this did not work.

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">

I have also tried calling completely separate pages for each conversion in hopes of circumventing the caching problem. This also did not work.

Here is the conversion page that is called. It is loaded into an iframe.

<head>

<script type="text/javascript">


    var google_conversion_id = 1070072355;
    var google_conversion_language = "en";
    var google_conversion_format = "3";
    var google_conversion_color = "ffffff";
    var google_conversion_value = 0;
    var google_conversion_label;
    var googleConversionType = 1; //default to 1

    //check if we need to to GCR
    var GCR = QueryStringGet("G");
    if (GCR && GCR != "" && GCR != 0) {
        googleConversionType = GCR;
    }

    /*
    CONVERSION TYPES:
    1- Single Lead: V-v8CMnc_gEQo4Sg_gM
    2- Multiple Leads: oHF7CLHf_gEQo4Sg_gM
    3 - Campaign Single: CmYQCMHd_gEQo4Sg_gM
    4 - Consultation: aSv7CLne_gEQo4Sg_gM
    */
    //set the label per conversion type
    if (googleConversionType == 1) {
        google_conversion_label = "V-v8CMnc_gEQo4Sg_gM";
    }
    else if (googleConversionType == 2) {
        google_conversion_label = "oHF7CLHf_gEQo4Sg_gM";
    }
    else if (googleConversionType == 3) {
        google_conversion_label = "CmYQCMHd_gEQo4Sg_gM";
    }
    else if (googleConversionType == 4) {
        google_conversion_label = "aSv7CLne_gEQo4Sg_gM";
    }

    //retrieves a value from the querystring
    function QueryStringGet(ji) {
        hu = window.location.search.substring(1);
        gy = hu.split("&");
        for (i = 0; i < gy.length; i++) {
            ft = gy[i].split("=");
            if (ft[0] == ji) {
                return ft[1];
            }
        }
    }
    </script>
    <script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js"></script>
    <noscript>
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/1070072355/?label=V-v8CMnc_gEQo4Sg_gM&amp;guid=ON&amp;script=0"/>
    </div>
    </noscript>

    <title></title>
</head>

Here is the code to load the page into the iframe

function GoogleConversionRegister(pageNum) {

    if (!pageNum || pageNum == 0)
        pageNum = 1;

    var iframe = document.createElement('iframe');
    iframe.style.width = '0px';
    iframe.style.height = '0px';
    document.body.appendChild(iframe);
    iframe.src = 'http://www.nirshamim.co.il/google/conversion_' + pageNum + '.html?G=' + googleConversionType + '&tile=' + (Math.random() * 100000);}

Here are the results from Fiddler:
Chrome

IE

  • 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-22T20:21:41+00:00Added an answer on May 22, 2026 at 8:21 pm

    In order to circumvent IE’s caching mechanism, I was forced to manually populate the iframe with the desired javascript (rather than load an external page).

    The code:

    var iframe;
    if (document.createElement && (iframe = document.createElement('iframe'))) {
        iframe.name = iframe.id = 'conversion_' + pageNum;
        iframe.width = 0;
        iframe.height = 0;
        document.body.appendChild(iframe);
    }
    if (iframe) {
            var iframeDoc;
            if (iframe.contentDocument) {
                iframeDoc = iframe.contentDocument;
            }
            else if (iframe.contentWindow) {
                iframeDoc = iframe.contentWindow.document;
            }
            else if (window.frames[iframe.name]) {
                iframeDoc = window.frames[iframe.name].document;
            }
            if (iframeDoc) {
                iframeDoc.open();
                iframeDoc.write('<html><body><script language=javascript>var google_conversion_id = XXXXX; var google_conversion_language = "en"; var google_conversion_format = "3"; var google_conversion_color = "ffffff"; var google_conversion_value = 0; var google_conversion_label = "XXXX";</script><script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js"></script></body></html>');
                iframeDoc.close();
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have decided that all my WPF pages need to register a routed event.
So, I've got a single VB6 executable that references multiple VB6 COM DLLs. Is
I need to implement an application that is simultaneously communicating with multiple clients using
I have a few user controls that need to be shared between multiple Silverlight
I have a API that is ran on multiple sites. The user can register
We need to create a Server with Scala RemotActors, that can handle multiple clients.
I need to register a javascript file from code-behind. I am interested to know
I need to build a scalable single sign-on mechanism for multiple sites. Scenario: Central
Do I need to register new extension types with Apple before I release an
I've got a whole directory of dll's I need to register to the GAC.

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.