Search code examples
asp.netpostbackautopostback

Is Postback considered as a pageview by google ads or CPM ads?


Is a postback (asp.net) considered as a pageview by google ads or CPM ads or it is ignored?

How does google ads differentiate between a postback and a pageview?


Solution

  • (Update: Sorry I mixed google adsense with google analytics. Not sure if this works the same way for adsense.)

    Since the google analytics code snippet runs on the client, it will be executed every time a page is displayed in a browser, even if this was caused by a postback.

    You could change this behavior by only including the google analytics code snippets if the current request is not a postback. For example, you could put the google code snippet into a user control and set the control's Visible property to false in the case of a postback.