Tracking
Tracking Clicks

Tracking Clicks

Want to track clicks events?

TestNix enables you track clicks. Clicks are events that should not be counted as conversions, but they do indicate the user taking an important step in that direction. This allows you to monitor and improve your CTR, for example in the use cases shown below.

  • Tracking clicks on your Newsletter Sign Up button
  • Tracking clicks on your Survey buttons
  • Tracking clicks on your “Download my Template” button
  • Tracking clicks on your “Buy Now” button

These are not quite conversions, because a visitor clicking “Buy Now” button does not automatically mean they will also submit the contact form.

Start Tracking Clicks

ClientComponent.tsx
"use client";
import { useTestnix } from 'testnix/client'
 
const ClientComponent = () => {
const { trackClicks } = useTestnix()
 
return (
  <button onClick={() => trackClicks('experiment-id', 'variant-id', 'experiment-hash')}>Buy Now</button>
)
}

Parameters

  • experimentId string required

The Id is given in the testnix dashboard.

  • experimentHash string required

The Hash is given in the testnix dashboard.

  • variantId JSX Elements required

Any unique Id can be provided.