Link to home
Start Free TrialLog in
Avatar of cenetadmin
cenetadmin

asked on

google analytics and page_load

I have a client with a website that we have added the google Analystics script to it.  He has a few pages that have links for pdf files.  So what I did was I have the page with the links (page1) calling a 'secondary' page (page1a) that has the google script on it so that we can track the user wanting to download the pdf.  So the logic is:
1) show page1 with pdf links.  
2) user clicks on pdf link #1 - goes to pdf#1link.aspx page...which in the page_load event has 'Response.redirect("1pdf").  in the html of pdf#1link.aspx page contains the google script.
3) user gets the pdf document

What I am wondering is if the script on the pdf#1link.aspx page will run BEFORE the page_load response.redirect("1.pdf") code will run...if not, under what event should I put the redirect?
Thanks
ASKER CERTIFIED SOLUTION
Avatar of Praveen Venu
Praveen Venu
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial