Piwik proxy script and page URL issue

I setup the piwik proxy according to How to - Analytics Platform - Matomo

After several days of testing the changes I noticed a major issue, I am seeing “Page URL not defined” as the page URL for 99% of the requests.

I turned on debugging to see if it would reveal anything and everything for the most part looks fine, I did see one thing that I’m not 100% sure about.

Action is a Page URL,
Action name = ,
Action URL =

Is the action URL supposed to be blank?

The URL is supposed to be set similarly to the standard piwik JS. What is your website URL ?

I figured out my problem.

I was using domain.com instead of www.domain.com which wasn’t an obvious problem at the time, but my web site is configured to redirect domain.com to www.domain.com and the redirect doesn’t pass the query string. I didn’t realize the problem until I saw the redirect using HttpFox.