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

pageTitle and pageType won't set via javascript tracker #329

Open
themancalledjakob opened this Issue Apr 15, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@themancalledjakob

themancalledjakob commented Apr 15, 2018

I track page views like this:

OWATracker.setPageTitle('myPageTitle');
OWATracker.setPageType('myPageType');
OWATracker.trackPageView();

In the report I can see that page views are tracked, though the page title is always taken from the <title> tag and not from what I explicitly set manually via the tracker.
These values do show up though at page path, not title.

Also, not all page views show up.
screenshot from 2018-04-15 18-04-19

As you can see, the number of total page views is "84", but when I count the individual pageviews together I come to a different value (10 + 7 + 2 = 19).

The page type is weirdly enough always the first one I set and stays the same for all visitors.
When I drop the owa table content in mysql, I can set a new page type, but it'll stay like this until I drop the mysql table again or ceompletely reinstall owa.

I get no errors in the javascript console.

My system:
OS 4.14.30-1-MANJARO (linux)
Chrome Version 65.0.3325.146 (Official Build) (64-bit)
Firefox 59.0.1 (64-bit)

My owa is at the last commit ( 00c3a91 / Tue Mar 20 03:35:23 2018 -0700 / properly setting current url on request. fixing #321 )

I used both synchronous and asynchronous javascript tracker.
No wordpress or mediawiki, no php tracker.

padams pushed a commit that referenced this issue Aug 26, 2018

@padams

This comment has been minimized.

Owner

padams commented Aug 26, 2018

page title not being overloaded is a bug now fixed in master.

page type and title are tied to the page url in the owa_document table. Those values will not change over time for a given URL even if you decide to set different values for them in the tracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment