Developer forum

Forum » Development » Pageview is Product Detail page

Pageview is Product Detail page

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

What is the best way to check if the user is in the product detail page? 

 

Right now I am:

  • Using an Page.AfterRender notification (because I just need to log a few things, so nothing that would impact the HTML)
  • Checking if the ProductId query parameter is not null nor empty
  • Checking if the current page has an active paragraph with the ProductCatalog App

 

It works, but I wonder if this is the proper place to do it and/or if there are better ways to do this.

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Pedersen
Reply

No better ways - looks good!

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Thanks Nicolai

 

You must be logged in to post in the forum