How do I tag a .NET script page with Google Analytics Tracking Tag?

Hi,

We have a .net script page that serves as a "redirect" page for all links pointing to outside our site

For instance, if a visitor is on our site clicks on a link, they are taken to a .NET script page which then redirects them to the correct destination.

The format of the link is such:
http://www.ABCcom/visit.aspx?q=123

We would like to track each click on this link somehow..

Is there a way to fire a Google Analytics tracking tag so that it registers each redirect through this .NET script page as a pageview in Analytics?

Thanks in advance!
Kalpesh
LVL 2
fixyfoxyAsked:
Who is Participating?
 
Tony McCreathTechnical SEO ConsultantCommented:
0
 
HainKurtSr. System AnalystCommented:
just add some code to your visit.aspx to add a record to some table on your side before redirecting and you are fine... do your own report yourself ;)
0
 
fixyfoxyAuthor Commented:
Hmm.. really need a solution to be able to track the clicks on the link in Google Analytics...

Is there a way to get a script page to request another page in the background which has analytics installed and pass a parameter to it identifying the details of the link clicked so it will get reported in Analytics as a pageview?

Kalpesh
0
 
HainKurtSr. System AnalystCommented:
sure if it is asp or asp.net page you can use this

Server.Execute("googleAnalytical.asp");
Server.Redirect(actualPage);
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.