Quantcast
Channel: Matomo forums - Latest topics
Viewing all articles
Browse latest Browse all 14068

Track both Show and Hide events

$
0
0

@Maxi wrote:

Hi, I’m using this to track how many times visitors open a collapsed section, however it’s tracking both show and hide events together.

How can I track show and hide events separately?

<a class="btn btn-light btn-collapse" data-toggle="collapse" href="#collapseExample" onclick="javascript:_paq.push(['trackEvent', 'Gallery', 'Info expand']);">Link</a>

The events are:

show.bs.collapse // This event fires immediately when the show instance method is called.
hide.bs.collapse // This event is fired immediately when the hide method has been called.

Many thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 14068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>