Forums » Help & Troubleshooting



clicky.log() no referrer in stats

Hi,
I've switched from standard code to something like this :

var clicky_custom = clicky_custom || {};
clicky_custom.pageview_disable = 1;
//static.getclicky.com/js
try{clicky.init(100547671); } catch(e){}
clicky.log(clickyhref, clickytitle, 'pageview');

All works great but I don't get the referrer on the landing page (if visitor come from google or another url etc).

I was thinking about setting a cookie, so if cookie is not set, get back to standard code to get the referrer. But pretty cumbersome ..

Any idea ?

Posted Wed Nov 5 2014 11:15p by KiboO***


Yeah you have to use the clicky.pageview() function to get referrer data, I believe, as it does a few unique things that clicky.log() does not. clicky.pageview() is the function that our code calls to log the actual page views when the page loads.

This function isn't documented but it doesn't take any parameters, just call it like that, that should work.

Posted Thu Nov 6 2014 10:32a by Your Friendly Clicky Admin


Ah nice, will have a look. Thanks
Could you please also delete this post or remove siteid ? Sorry...

Posted Thu Nov 6 2014 12:55p by KiboO***


You must be logged in to your account to post!