Multiple elements in a click goal?
First post, good to be here!
How are conversions being tracked with Multiple elements in a click goal? The only clue I can find is "A click goal is registered every time a visitor clicks on a tracked element on your page." from https://help.optimizely.com/hc/en-us/articles/200039905 So I assume a visitor only need to click on one of the tracked elements in order to be tracked?
Solved! Go to Solution.
You're correct - if you're tracking multiple elements in one click goal, then the user only needs to click on one of these elements in order to trigger this goal.
As regards what is going on behind the scenes, Optimizely uses jQuery selectors in order to specify which elements should be tracked. If you're curious, you can see which selectors are being tracked by clicking the option to edit a certain goal and opening up the "Advanced" section. Here you can see a field labelled "Selector", which contains one or more selectors which will be tracked. Multiple selectors are separated by a comma.
Selectors either refer to a CSS class or ID attached to an element or elements or else use the HTML structure of the document to specify where the element to be tracked is located. A CSS ID can only appear once per page, whereas a class tends to specify multiple elements with common characteristics. Classes are therefore really handy if you want to track a set of identical buttons on a page.
In any case, as soon as you click on any element which is specified in the click goal you've set up, the click goal will fire and a conversion will be counted.
Hope this helps!