ASP.Net codebehind - get google paid advert info -


i have ecommerce site written in asp.net. there way site code see when user referred site paid google ad? note should work on page - not search landing page.

[more detail - can see in google analytics 20%+ of paid click traffic hits 'register' page, small portion registers. want check how many of these failing captcha check, , hence bots rather real traffic.]

you can implement solution using global application class (global.asax) file. if implement application_beginrequest event along request.server["http_referer"] or request.urlreferrer can know current request coming from, , capture possible google ads domains it.

void application_beginrequest(object sender, eventargs e) {      string referer = request.servervariables["http_referer"];      if (referer != null && referer.indexof("google") > -1)     {          //coming google     } } 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -