Rich-text Reply

Counting total clicks, not total clickers

GavWershbale 02-10-15

Counting total clicks, not total clickers

[ Edited ]

Hello all,

 

We're currently running an experiment which tests the preview image of a colour swatch. We want to know how many times people click inside of the grid of colours to choose from, so that we know if people click dozens of times sampling colours, or if they click once or twice and give up. 

 

Unfortunately for us, Optimizely de-dupes clicks and counts multiple clicks on an object as just 1. 

 

Is there a work-around for this to count how many total clicks occur as a goal? Anyone have similar stories?

 

Thanks,

Gav

Brian_Abad 02-10-15
 

Re: Counting total clicks, not total clickers

[ Edited ]

Hey @GavWershbale ,

 

There is an option to de-duplicate goals using a custom event goal if you are familiar with some jQuery. If you're able to identify the selector of the element you are looking to track within your experiment, and if the element is within the scope of the URL Targeting of your experiment, you can utilize the following code within the Experiment JavaScript to de-duplicate and track clicks:

 

window.optimizely = window.optimizely || [];

//enter selector of element you would like to track
$('SELECTOR').bind('mousedown', function(){
   window.optimizely.push(['trackEvent', 'eventName', {'anonymous':true}]);
});

Please note, our Stats Engine and other results calculations only take into consideration the default Optimizely behavior which is de-duplicating results. Using the code above strays from normal Optimizely behavior and may not be ideal other than recording a non de-duplicated count of conversions.

 

Lastly, more on custom event goal set-up can be found here: https://help.optimizely.com/hc/en-us/articles/200039925-Custom-event-goals.

 

I hope this helps!

---
Brian Abad
Manager, Technical Support
Customer Success
Optimizely