AdWords
2.5K members online now
2.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

Onclick conversion tracking phone number on mobile site.

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hoping someone has experienced the same issue and can provide some guidance. I'm a web developer and have installed "onclick conversion tracking" to track when users click-to-call phone numbers on our mobile sites.  The problem I experience is when I'm trying to track he same number which shows up on the same page.  Currently I have an image onlick conversion which is setup as follows:

 

<img src="images/call_us.png" class="buttons" alt="Call: 623-925-2020" width="305" height="52" onClick="goog_report_conversion('tel:623-925-2020')"/>

 

and I also have a text link onclick conversion on the same page (same phone) which is setup u like this:

 

<a onclick="goog_report_conversion('tel:623-925-2020')" href="tel:623-925-2020" >623-925-2020</a>

 

They both work as far tracking conversions go, but I noticed on when clicking on the text link that the Phone Number Pops Up on my iPhone as if I'm going to make a call (just like it should), but the first time it appears it fades out and then pops up again. This only happens on the text link onclick conversion.

 

If anyone would care to have a look you can visit ultimatecycles.adlingo.com on your mobile phone (should have a full internet browser). Click on the phone number text link on the page and then click on the call us button and you will see what I'm talking about.

 

It's anoying and I can't figure out the fix for it without removing the onlick conversion script from the website. Do I need two different scripts for each conversion?

1 Expert replyverified_user

Re: Onclick conversion tracking phone number on mobile site.

Top Contributor
# 2
Top Contributor

Hello.

 

Try registering the conversion on the onmousedown event. I don't remember exactly the reason behind it (my javascript skills are rustier by the day), but I remember my developers telling me that onclick causes problems in certain circumstances. Then please get back to tell us if it works.

Calin Sandici, AdWords Top Contributor | Find me on: Google+ | Twitter | LinkedIn | myBlog
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.

Re: Onclick conversion tracking phone number on mobile site.

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Hey Calin, Could you provide a link to documentation for the "onmousedown" event? Based on the little bit of documentation I can find, what you've mentioned appears to be for tracking "events" from within Google Analytics. GA is fine, but when your running an Adwords campaign there are awesome benefits for use Google's Conversion tracking. To be more specific, I like having the ability to tie "mobile click-to-calls" to the keyword level in Adwords. This allows for better campaign optimization when your clients are looking for Return On Investment. Thanks! BZ

Re: Onclick conversion tracking phone number on mobile site.

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭

Update,

 

I added onmousedown in place of onclick. It appears to be working the same way, albiet quicker. However, again when I click the text link phone number the call dialog box opens, closes, then opens again to proceed with the call.

Re: Onclick conversion tracking phone number on mobile site.

Top Contributor
# 5
Top Contributor

Hello.

 

Here's some documentation: http://www.w3schools.com/jsref/event_onmousedown.asp

 

As for what event is used for what, an event triggers a javascript function. If that function has to do with GA, or if it's a simple alert box, it has nothing to do with the event itself.

 

On a regular browser, I see that a click tries to trigger the AdWords conversion script. How it behaves on a smartphone, I don't know, sorry.

Calin Sandici, AdWords Top Contributor | Find me on: Google+ | Twitter | LinkedIn | myBlog
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.