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

Unable to set Page Title, Page Type, Entry Page etc in php tracking #321

Open
userpqr opened this Issue Mar 12, 2018 · 9 comments

Comments

Projects
None yet
4 participants
@userpqr
Copy link

userpqr commented Mar 12, 2018

The question looks astonishingly simple. But, I searched a lot and could get no answer.
I have added the php tracking code in footer. Views are getting tracked, but page titles, entry page, exit page etc are showing as not set. I tried setting

owa->setPageTitle($_SERVER['PATH_INFO'];

But, got no result.

I got the php tracking code from the website->get tracking code. It looks like it does not work. Can someone give me a sample php code for owa for tracking page titles etc as mentioned above ?

@padams

This comment has been minimized.

Copy link
Owner

padams commented Mar 12, 2018

@userpqr

This comment has been minimized.

Copy link
Author

userpqr commented Mar 12, 2018

Thanks for the response. I am now using the code that is mentioned here : https://github.com/padams/Open-Web-Analytics/wiki/PHP-Invocation What I understood is, if the URL contains some parameter like ?a=0 then the Page path, title etc gets set. Otherwise, it shows page path not set.

Am I missing something here in the code or in the settings ? Is there any way I can set the page path etc when the URL does not have any parameter ?

@userpqr

This comment has been minimized.

Copy link
Author

userpqr commented Mar 12, 2018

Can you please give me the URL of the code in master that you referred here ?

@WmShrPy

This comment has been minimized.

Copy link

WmShrPy commented Mar 18, 2018

Same remark as userpqr, on a fresh installation of 2018-03-18 master version.
On PHP tracking, value passed at setPageTitle() isn't interpreted when a page is called without parameter ; "not set" informations are stored/viewed.
( The only tracking mode tested was with trackPageView() )

@padams

This comment has been minimized.

Copy link
Owner

padams commented Mar 20, 2018

Just added the fix to master.

@githubtd01

This comment has been minimized.

Copy link

githubtd01 commented Mar 20, 2018

Thank you!

Did a complete new installation with the new master and I'm still having the same problem. Was anybody else successful?

@padams

This comment has been minimized.

Copy link
Owner

padams commented Mar 20, 2018

@githubtd01

This comment has been minimized.

Copy link

githubtd01 commented Mar 20, 2018

I did deleted the complete database and created a new one.

@padams

This comment has been minimized.

Copy link
Owner

padams commented Mar 21, 2018

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