I haven’t been able to find anything about this the documentation - we have a lightbox that appears when the visitor leaves the site (using Ouibounce), ie when the mouse moves outside the viewport the lightbox changes from display none to visible.
I would like to track how often this lightboxes appears and is then interacted with, but would this work using content tracking?
I could use events but I feel content tracking would be better.
Any chance you could create a small HTML/JS page where you can reproduce the issue? maybe we can improve the content tracking to accurately track impressions in this case, if we can reproduce the issue
I’d like to give this a week and take it from there.
2 reasons - this content box normally gets 1-2 clicks a day so it’s perhaps not so accurate, but mostly, I’ve noticed today that they are registering, just not immediately - it seems to be taking a few minutes to show up in piwik for some reason.
A minimalist version of the code I’m using if it helps:
Must content tracking have only 1 data-content-target attribute?
In the data-content-name and piece container I have 2 buttons, so I’ve attached the target to each with different values (I noticed the values aren’t reported anywhere?)
It seems that only the first of the 2 targets is having its interactions counted, possibly. So I have to set up 2 data-content-names and data-content-pieces so add some more divs and spans?