Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9021573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:17:15+00:00 2026-06-16T05:17:15+00:00

I am creating a .NET page specifically for firing a Google Analytics event. The

  • 0

I am creating a .NET page specifically for firing a Google Analytics event. The reason is that I want to be able to see how many people are clicking links I send out in emails. The best idea I had was to make a simple .NET page which fires an event then redirects to a document.

Problem is, it redirects just fine using:
protected void Page_Load(object sender, EventArgs e)
{
Response.Redirect(“…”. true);
}

But I can’t get the event to fire. I tried using StringBuilder which is the way I am accustomed to adding script from code-behind. Any suggestions on a way to get the event to work, or even a better way to fire an event for email clicks to documents?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T05:17:16+00:00Added an answer on June 16, 2026 at 5:17 am

    The reason the Google analytics event is not happening is that Google Analytics is client-side script.

    Client side script is delivered when the server sends the HTML and JavaScript (and other content to the browser.

    By using Response.Redirect on the server, you are ensuring that the web server never sends that HTML and JavaScript out to the browser. Instead, the web server sends an http code (Http status-code 302) telling the web browser to go to the page you’re redirecting to.

    It you want to track the clicks you’d be better off just saving them in a database in the Page_Load event, rather than trying to use Google Analytics.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating an asp.net page that uses the google map api. The page loads
I have a document that my asp.net page is creating and I need to
I have an ASP.net page that is creating a service reference to a WCF
I have an ASP.NET page that is the base to many more derived pages
I am creating an ASP.NET page where I need a couple of variables which
Am creating a script using JQuery on an ASP.NET page. Have a JSON string
I am creating a diagnostic page for ASP.NET and would like to programatically detect
I am creating web page using asp.net. Is it possible to remove/hide the browsers
i have a small problem, i am creating a edit page in my asp.net
I'm creating asp.net mvc login page. This is simple. Same as others. Controller contains

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.