question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[GA analytics widget]: clicking on pagination doesn't trigger pushFunction

See original GitHub issue

If you use the analytics with this configuration, pushFunction is not triggered when a user clicks on a new page. With the triggerOnUIInteraction option to true, we expect that it is.

movies.addWidget(
  instantsearch.widgets.analytics({
    pushFunction: function(formattedParameters, state, results) {
           console.log('pushFunction')
    },
    pushInitialSearch: true,
    triggerOnUIInteraction: true,
    delay: 0, 
  })
);

Here is a jsfiddle reproducing the issue: https://jsfiddle.net/mthuret/j9nwpz34/23/

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
mthuretcommented, Sep 22, 2017

When clicking on a link of the pagination widget, pushFuction is not triggered whereas if you select something using the refinement list it is.

This was first reported by a user on support.

0reactions
bobylitocommented, Sep 25, 2017

We have no plan to backport it (it’s implemented as a feature) and it’s not yet released as part of a stable release. Let me know if it causes too much problem and will find a way to backport it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

analytics | InstantSearch.js - Algolia
A widget that pushes the current state of the search to the analytics platform of your choice.
Read more >
Pagination guidelines - GitLab Docs
Pagination is a popular technique to avoid loading too much data in one web request. This usually happens when we render a list...
Read more >
Button click not triggered if using bootstrap-table pagination ...
i'm using wenzhixin bootstrap-table , and when i'm loading the page for the first time the button click is triggered, but after paginate...
Read more >
Event Tracking is not working in Google Tag Manager? Here ...
There are many things that can go wrong with your Google Tag Manager event tracking. You might not see any events in the...
Read more >
How To Build Custom Pagination with React | DigitalOcean
A method for handling large datasets on the view is by using the infinite scrolling technique - where more data is loaded in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found