Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 422
  • Last Modified:

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
0
fixyfoxy
Asked:
fixyfoxy
  • 2
1 Solution
 
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
 
Tony McCreathTechnical SEO ConsultantCommented:
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now