Clicky Destination
Clicky is a web analytics tool that lets you monitor, analyze, and react to your blog or website's traffic in real time. Clicky supports user segmentation, so marketers can define and track customers based on constraints like user action, traffic source, location, or device. It also offers on-site analytics to track total visitors on site, pages being viewed, and user actions like pageviews, downloads, sign ups, and session duration.
The Clicky destination code is open-source on GitHub. You can view the code in the analytics.js-integration-clicky repository.
- From the Segment web app, click Catalog.
- Search for "Clicky" in the Catalog, select it, and choose which of your sources to connect the destination to.
- In the destination settings, enter your Site ID in the settings. You can find your Site ID under the Preferences of your account.
- Segment automatically initializes Clicky's script with your Site ID upon loading analytics.js.
If you're not familiar with the Segment Specs, take a look to understand what the Page method does. An example call would look like this:
1analytics.page("Home",{2path: "http://www.example.com/home"3});
When you call page, Segment calls Clicky's log function with the current URL path and the name of the page. Clicky does not support event properties for page calls.
If you're not familiar with the Segment Specs, take a look to understand what the Identify method does. An example call would look like this:
1analytics.identify('ze8rt1u89', {2name: 'Zaphod Kim',3gender: 'Male',4email: 'jane.kim@example.com',5phone: '1-401-826-4421',6address: {7city: 'San Francisco',8state: 'Ca',9postalCode: '94107'10}11});
When you make an Identify call with Segment, Segment creates a Clicky custom session and maps the traits of your event. Segment sets the username of the identified user based on the traits.username value included in the event. If the username value isn't provided, Segment defaults to the email trait. If the email trait isn't included, Segment defaults to the name trait.
If you're not familiar with the Segment Specs, take a look to understand what the Track method does. An example call would look like:
1analytics.track("My Custom Event", {2checkinDate: new Date(),3myCoolProperty: "foobar",4});
When you use the track method, a goal is created in Clicky. Only the event name and the revenue of the event (if it exists) will be included in the call. Clicky doesn't support any other event properties.
When you login to Clicky, it automatically sets a cookie on your browser to ignore your visits to your website. If you need to test something, such as a goal or campaign, you'll want to use a different web browser or switch your browser to private/incognito mode.
Segment lets you change these destination settings from the Segment app without having to touch any code.
You can find your Site ID under the Preferences tab on your Clicky account.