[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


C# JavaScipt call for Google Analytics

Posted on 2012-08-30
Medium Priority
Last Modified: 2012-09-05
Help.  I am a very, very tired programmer.  

I have code that is doing a querystring to collect a parameter in C# for each indiviual that goes to the ASPX page.  

I need to take that value and add there Google anaylic's script to it.  Since the invidual is based on a Query String on separate pages, I need to know how to do this from the C# code.

Thanks in advance....
Question by:kimmie8000
LVL 35

Accepted Solution

Robert Schutt earned 2000 total points
ID: 38360791
Ok, here is a stab in the dark, could you use something like:
<%= Request.QueryString["userid"] %>

Open in new window

inside your javascript block on the aspx pages?

Maybe to use on more than 1 page, save this in Session["userid"]?

To get closer to a real answer I think you should explain a bit better how your page(s) currently look, post some (relevant) code for example.

Author Closing Comment

ID: 38369551
Many thanks on giving feedback to an extremely tired programmer.  I just needed the push.  Thank very much!

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
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…
Loops Section Overview
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

872 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