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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -