I need to track analytics for pages on a site before using the redirect module to redirect to an external url.

Currently I use hook_exit() to get all the data i need such as useragent, referrer etc, but it would be nice if I could get this data into google analytics.

Any ideas as to how I could do this, without having to load the page html with the javascript?

Comments

modstore’s picture

Title: Track a page in analytics without having to fully load page » Track a page in analytics without having to fully load page (eg before redirect)
Category: feature » support
hass’s picture

Status: Active » Fixed

Ga is javascript... This cannot done with js. Use normal external links tracking without redirects. Redirects are useless.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.