Your issue is directly related to data collection, likely because you do not have s.pagename defined. Due to this and due to how different browsers handle URLs, some include the protocol and subdomain while others do not. I would recommend altering the implementation on your site to make sure s.pageName is consistent. Commonly users will set the pageName to document.title, or use things like breadcrumbs to make it more descriptive.
If URL is what you're after, I'd recommend the following code:
This will strip the protocol and query strings from the URL so they don't create separate line items. The bottom line however is that you are going to want to alter the implementation on your site - there's really no easy way around that.