Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Discussions > Technical Questions > onclick Conversions - clicks not getting counted
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
abj  
View profile  
 More options Dec 4 2008, 8:19 am
From: abj
Date: Thu, 4 Dec 2008 05:19:48 -0800 (PST)
Local: Thurs, Dec 4 2008 8:19 am
Subject: onclick Conversions - clicks not getting counted
I am trying to setup an 2-page A/B experiment where conversion should
be counted when the visitor clicks on a bunch of links.  I've gotten
through setting up the onclick event and the experiment is live but I
am not seeing any conversions when I'm doing some test clicks.  Used
different browsers, cleared cookies, etc and even got a couple of
friends to try it from their machines.  I am seeing visits in the GWO
report but no conversions.  Here's what all I've done:

1. Control script before the <html> tag on the original page.  I
swapped it to just after the <body> tag.  But am guessing it makes no
difference.

2. Original page tracking script just above the GA script which is
just above the </body> tag.

3. Variation page tracking script also just above the GA script as
above.

4. First part of conversion code after closing </html> tag on both
original and variation page as below:

<script>
if(typeof(urchinTracker)!='function')document.write('<sc'+'ript
src="'+
'http'+(document.location.protocol=='https:'?'s://ssl':'://www')+
'.google-analytics.com/urchin.js'+'"></sc'+'ript>')
</script>

5. Modified second part of conversion code with the conversion count
function just before the closing </head> tag on both original and
variation page as below:

<!--
function ConversionCount()
{
_uacct = 'UA-xxxx-4';
urchinTracker("/yyyy/goal");
return true;

}

// -->

6.  All the relevant links on the page with the onclick event as
below:
<a href="page.htm" onclick="return ConversionCount();">Page</a>

Where am I going wrong?  Would appreciate any help.  Thanks in
advance!

I would also like to second Erik Vold's feature request for a real
time conversion testing phase (http://erikvold.com/blog/index.cfm/
2008/10/31/google-website-optimizer-feature-idea-testing-phase).

Having to wait 2-3 hours before you find that the conversions are not
getting counted really sucks!

-abey


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
abj  
View profile  
 More options Dec 4 2008, 8:24 am
From: abj
Date: Thu, 4 Dec 2008 05:24:06 -0800 (PST)
Local: Thurs, Dec 4 2008 8:24 am
Subject: Re: onclick Conversions - clicks not getting counted
:) Well what are the odds on that! Someone else with the same problem
and our GWO Hero Erik Volds has already posted an answer.  Looks like
its a missing <script> ... </script> around the conversioncount()
function.  If you don't hear back from me then that was the problem.

On Dec 4, 6:19 pm, abj wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik V  
View profile  
 More options Dec 7 2008, 9:02 pm
From: Erik V
Date: Sun, 7 Dec 2008 18:02:40 -0800 (PST)
Local: Sun, Dec 7 2008 9:02 pm
Subject: Re: onclick Conversions - clicks not getting counted
I think google should update the docs, this looks like a common
mistake =0

Erik

On Dec 4, 5:24 am, abj wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »