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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:42:40+00:00 2026-06-15T16:42:40+00:00

goog_snippet_vars = function(){ var w = window; w.google_conversion_id =xxxxx; w.google_conversion_label =xxxxxx; w.google_conversion_value =xxxxxx; },

  • 0
   goog_snippet_vars = function(){
var w = window;
w.google_conversion_id ="xxxxx";
w.google_conversion_label ="xxxxxx";
w.google_conversion_value ="xxxxxx";
},
goog_report_conversion = function(url) {
goog_snippet_vars();
window.google_conversion_format = '3';
window.google_is_call = true;
var opt = new Object();
opt.onload_callback = function() {
if (typeof(url) != 'undefined') {window.location = url;}
}
var conv_handler = window['google_trackConversion'];
if (typeof(conv_handler) == 'function') {conv_handler(opt);}
}
</script>

I am dumping the above code in to a page(onload) using stringbuilder from server.
and i am using string.format to generate html from server side to the telephone no displayed on the webpage , which on click have to call one of the functions in above script. I used the below code for that

string.Format("<a href=\"tel:{0}\" onclick=\"Javascript: goog_report_conversion(tel{0}); return false;\">{0}</a>", PhoneNumber));

everything is fine html is applying to the tele no. the issue is on click it is not hitting the function , its simply navigating to new page with url as href value.

so please help me if any work around is there…..thanks…

  • 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-06-15T16:42:41+00:00Added an answer on June 15, 2026 at 4:42 pm

    Finally I fixed the issue. The main problem is passing the arguments to the script function.
    we have to pass some thing like goog_report_conversion(567678899);

    For that I had used regex.replace function to remove special characters like below

    Regex.Replace(sPhone,"[()' '-]","");
    

    and passed that in the place of parameter at function call.
    now my generated html looks like below

    <a onclick="Javascript: goog_report_conversion(2818669180); return false;" href="tel:(281) 866-9180">(281) 866-9180</a>
    

    So, Finally I fixed my issue in the above manner. Thanks to all who tried to help me….

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

Sidebar

Related Questions

function updateItem(str) { var stocks =new Array(GOOG,MSFT,AAP,JDAS,G); for(var i=0; i<stocks.length;i++) { xmlHttp=GetXmlHttpObject(); if (xmlHttp==null)
I have an enum in a file: goog.provide('animals.Fish'); animals.Fish = function(obj) { this.name_ =
I have a base class named 'baseScreen' as follows: digient.casino.ui.baseScreen = function() { goog.debug.Logger.getLogger('demo').info('baseScreen');
I have this code on the header of my page <script>window[_GOOG_TRANS_EXT_VER] = 1;</script> But
would like to match urls which are outside the comment function from javascript. Regex
For example: // a.js goog.provide('mypackage.a'); goog.provide('mypackage.commands'); mypackage.a.somevar = 1; mypackage.commands.save = function(...) {...}; //
I came across the goog.math.isFiniteNumber function in the Google Closure Library . What it
I tried to call a function when a mouse goes up above a subclass
I am trying to obtain the url from the innerHTML of a web page
When I put a comment above my variable or function with @private in it

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.