Forums » Help & Troubleshooting



Question on clicky.log

Am attempting to use the clicky.log onclick function (seen here: https://clicky.com/help/customization/manual#log) to generate an event when someone clicks a button (or image) on one of my sites. Do not get any errors when checking but am getting no results when I click from another browser and then check Clicky. I am calling the Clicky tracking code at the footer of the website and the clicky.log function is on several href tags in the body.

After not getting any results I wanted to make sure it was getting called correctly and took the clicky.log function out of the onclick and just called it in regular JS, it broke and I got an "uncaught exception" error.

Is this all correct?

Posted Mon Sep 30 2013 6:40a by ringo***


Can you post a URL where you are calling this function? And also mention what button you are trying to track?

Posted Mon Sep 30 2013 7:04p by Your Friendly Clicky Admin


We are calling it on our homepage (http://www.asg.com/) to hopefully track the clicks on our hero image and callouts. The large hero image with the green cloud has the code on it's href tag.

Posted Tue Oct 1 2013 4:14a by ringo***


Anyone have any thoughts?

Posted Mon Oct 7 2013 12:08p by ringo***


three thoughts:

1. are you trying to do this in a free account? From the help page: Note that goals and internal script logging are Pro-only features. The clicky.log() function, used to capture Javascript events, will work with any premium account.

2. you mention different browser, but if it's the same ip address, then your clicks might be ignored if you don't alter the default setting, which is to NOT track clicks from the account owner's IP address.

3. the clicky.log call takes three parameters. The third param is type of action you are logging. If left blank, it defaults to 'click'. Other options are 'download', 'outbound', and 'pageview'. Your clickly.log calls provide a third parameter using values which are not among the listed options. You may have thought you could specify your own?

Note: I have not implemented clicky.log calls myself (I use the click_log procedure) so this is something I noted from the help page but don't have hands on experience behind my observation.

the page I am referring to is here: https://clicky.com/help/apps-plugins#/help/customization/manual

cheers.

Posted Wed Oct 16 2013 2:11p by edyod***


Thanks for the reply.

1. Do have a pro account.
2. Did try from different IPs, actually other computers that I haven't logged into Cliky so I didn't have to worry about cookies or anything getting me that I might forget during testing.
3. The only required parameter is the "href" parameter. I have tried it as the ONLY parameter, being the other two are optional, and still haven't gotten anything.

Been using the help page but it doesn't seem to be helping lol. Guess I'll still have to fiddle with it some more.

Posted Wed Oct 16 2013 5:31p by ringo***


Got it to work!

Ended up deleting all parameters and removing the "this.href" function (might have been the culprit?) and replaced it with the dynamic URL from the CMS.

Posted Thu Oct 17 2013 7:49a by ringo***


ringo64, awesome! Now I can learn from your experience on doing dynamic clicky.log tracking. thanks for letting us know you got it working.

Posted Thu Oct 17 2013 9:11a by edyod***


You must be logged in to your account to post!