Mobile app version of vmapp.org
Login or Join
Nimeshi995

: Google analytics track product id I have a website where users can add products to favorites. I want to track how many user are using this feature, and later be able to access this information

@Nimeshi995

Posted in: #AnalyticsEvents #EventTracking #GoogleAnalytics

I have a website where users can add products to favorites. I want to track how many user are using this feature, and later be able to access this information to see how this feature is performing using Google Analytics Api.

So I will create an event to track this when a user clicks on the button.

ga('send', {
hitType: 'event',
eventCategory: 'Products',
eventAction: 'click',
eventLabel: 'favorite'
});


Then to see how many favorites has a product received, I will have to filter how many events have been fired in the product url.

The problem, is:


If a user clicks the add to favorites button in a list of products the event is not fired in the product url, so it will not count into the product events.
If in the product page, I add related products, each one with its own button. The related products likes would count in the main product, as they are fired in the product page url.


How would you approach this? Maybe I could add the product id in the eventLabel and change the eventAction to "click-favorite", but I feel that this is not the corret solution.

Thank you.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Nimeshi995

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme