Forums » Help & Troubleshooting
clicky.log() overwrite each other
I put code bellow on my site, each clicky.log inside a link tag:onclick="clicky.log(document.location.href,'Add to Cart');"
onclick="clicky.log(document.location.href,'Demo Page');"
onclick="addToWishList('51'); clicky.log(document.location.href, 'add to Wishlist');"
but whichever link I click, the event report is always show "Demo Page". Can someone tell me how to fix this?
Posted Sun Jun 17 2012 5:28am by echothemes
I have a similar issue. I'm using clicky.log() to track pageviews in a Flash quiz eg.
clicky.log('#/questions/Q1', "Question 1", 'pageview');
clicky.log('#/questions/Q2', "Question 2", 'pageview');
clicky.log('#/questions/Q3', "Question 3", 'pageview');
etc. up to Q10.
Th pageviews show in Spy but the Pages report shows the wrong number of pageviews and groups them under root domain with the page title Question 7.
The page is in an iframe on Facebook and we have it set up as a mirror.
Any thoughts or suggestions gratefully received
Thanks
Mike
Posted Mon Jun 18 2012 5:11am by kishbluw
I read somewhere in this forum, and it works for me. My final code is like this:
onclick="clicky.log(document.location.href+'/addCart','Add to Cart');"
onclick="clicky.log(document.location.href+'/demoPage','Demo Page');"
onclick="clicky.log(document.location.href+'/addWishlist', 'add to Wishlist');"
As you see, in my case there is an extra: +'/addCart'
If I'm not mistake, Page Views also considered as Actions like the Event, so adding extra "url" to current url is important to make it unique.
Posted Tue Jun 19 2012 1:15pm by echothemes
We only store one unique title per unique URL so yes in order to log multiple unique titles for potentially the same URL, you have to add something to the URL for each title to make it unique.
Posted Wed Jun 27 2012 8:44pm by Your Friendly Clicky Admin
