0
Hello I have a slider within the site and would like to create a tracking Event within this slider. Inside this slider has 6 images, so type up to which image the user was, which is the most viewed and cia. someone can help me?
0
Hello I have a slider within the site and would like to create a tracking Event within this slider. Inside this slider has 6 images, so type up to which image the user was, which is the most viewed and cia. someone can help me?
1
I don’t know which slider plugin you’re using, but it’s very common that these plugins already have options to handle callbacks. Something like:
$(function() {
$('#slides').slidesjs({
width: 940,
height: 528,
callback: {
complete: function(number) {
console.log('O slide mostrado é o número ' + number);
}
}
});
});
You can use this callback to send an event to GA every time the transition is completed.
callback: {
complete: function(number) {
ga('send', 'event', 'home', 'impressao', 'slider', number);
}
}
So you can know which image had the most impressions using the number
as an identifier or even by assigning the name of the image to the event label.
Browser other questions tagged javascript google google-analytics
You are not signed in. Login or sign up in order to post.