brijeshb42 brijeshb42 - 1 year ago 52
Javascript Question

How to send pageview for one subdomain from some other subdomain

Suppose I have a blogging system where each category has its own subdomain like,
lists all posts of python in an infinite list and I am sending pageviews for each article when it comes into view.

But once in a while, when the user is on
, I pull in some articles from
as related article and show it in the list between articles on
. Now I want to send the pageview of article retrieved from

How would I do that in Google Analytics ?

Answer Source

If this makes sense for you it should work by setting the location field.

ga('send','pageview', { 'location' : '' });
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download