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

Posted on 2010-01-06
Last Modified: 2013-12-07

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:

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!
Question by:fixyfoxy
    LVL 51

    Expert Comment

    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 ;)
    LVL 2

    Author Comment

    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?

    LVL 51

    Expert Comment

    sure if it is asp or page you can use this

    LVL 23

    Accepted Solution


    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
    The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now