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

Not tracking hashtag #9771

Closed
fmp777 opened this issue Feb 12, 2016 · 1 comment
Closed

Not tracking hashtag #9771

fmp777 opened this issue Feb 12, 2016 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@fmp777
Copy link

fmp777 commented Feb 12, 2016

It doesn't seem the hashtag tracking works anymore

_paq.push(['discardHashTag', false]);

None of my hashtags are getting recorded

var _paq = _paq || []; _paq.push(["setDomains", ["*.www.xxxxxx.com"]]); _paq.push(['discardHashTag', false]); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); _paq.push(['enableHeartBeatTimer']); (function() { var u="//www.xxxxxx.com/piwik/"; _paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['setSiteId', 2]); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); })();

@sgiehl sgiehl added the answered For when a question was asked and we referred to forum or answered it. label Feb 12, 2016
@sgiehl
Copy link
Member

sgiehl commented Feb 12, 2016

This method is afaik meant to discard the hash fragment on the client side. Setting it to true will prevent the fragment beeing sent to the tracking server at all. Setting it to false doesn't have an effect unless it was set to true before.

If you want to enable tracking of fragments, you need to enable that in the website options within piwik admin.

@sgiehl sgiehl closed this as completed Feb 12, 2016
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