Manage Options:

Tracking clicks manually

The CE2.click function can be used to send click data to Crazy Egg. This function can be called in a number of ways:

CE2.click(element, x, y)

element: Either a DOM element or a virtual element
x: The x-coordinate of the click, relative to element
y: The y-coordinate of the click, relative to element

CE2.click(element, event)

element: Either a DOM element or a virtual element
event: A mouse event from element or one of its sub-elements; the x and y coordinates of the click will be derived from the event object

CE2.click(element)

element: Either a DOM element or a virtual element
(The click will be placed in the center of the element.)

Was this article helpful?