You have no items in your shopping cart.

Sunday, September 15, 2019 3:28:06 PM

dataLayer PageType:ProductPage on custom controllers

Avatar

Posted: 29 days ago

#9247 Quote

Scott

Posted: 29 days ago

#9247 Quote
Hello,

Is there a way to inject the tracking code on custom controllers/actions?

In other words it seems like it's only pushing the PageType.ProductPage dataLayer variable on pages that have a controller name of Product and action name of ProductDetails.

We have some custom controllers/actions that we'd like to inject the ProductPage code on but there doesn't seem to be a way to do that currently.

For example we can name our custom controller action ProductDetails as well and have it inject only based on action (rather than controller + action) if that's a feasible solution on your end.

Thanks

Powered by nopCommerce

Copyright © 2019 FoxNetSoft. All rights reserved