Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ajax loading reinit download tracking #11479

Closed
DomsaNN opened this issue Mar 13, 2017 · 2 comments
Closed

ajax loading reinit download tracking #11479

DomsaNN opened this issue Mar 13, 2017 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it.
Milestone

Comments

@DomsaNN
Copy link

DomsaNN commented Mar 13, 2017

Hi I am running a ajax based website and we need to reinit the event on download links. It works like a charm on the initial page load, but after reloadind ajax content I need somehow to reinitiate that scanning for downloadlinks and initiate event thing from piwik.

I couldnt find anything about that topic. Any solutions for that?

@tsteur
Copy link
Member

tsteur commented Mar 13, 2017

Check out https://piwik.org/blog/2017/02/how-to-track-single-page-websites-using-piwik-analytics/

Since Piwik 3.0.2 you can call _paq.push(['enableLinkTracking']); to do this when content changes

@tsteur tsteur closed this as completed Mar 13, 2017
@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Mar 13, 2017
@tsteur tsteur added this to the 3.0.3 milestone Mar 13, 2017
@DomsaNN
Copy link
Author

DomsaNN commented Mar 14, 2017

too bad I am stuck at 2.17 due to php version... thanks anyway, working with trackEvents now as workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants