C# JavaScipt call for Google Analytics

Posted on 2012-08-30
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

    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

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

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    730 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

    16 Experts available now in Live!

    Get 1:1 Help Now