Closed peter-brady closed 10 years ago
Each TOC item has a tocify-item
classname associated with it, so you could just use the following jQuery:
$('.tocify-item').on('click', function() {
_gaq.push(['_setAllowAnchor', true]);
});
Hi Greg,
Great. I'll give that a go.
Many thanks, Peter.
Hi,
I've been trying to get each click in the Tocify TOC to register as an event in Google Analytics but to no avail.
I've tried adding:
to the GA script block but it doesn't seem to make any difference.
I wonder if anybody knows how to do this.
Many thanks, Pete.