You have no items in your shopping cart.

Monday, November 18, 2019 3:44:21 PM

dataLayer PageType:ProductPage on custom controllers

Avatar

Posted: 3 months ago

#9247 Quote

Scott

Posted: 3 months 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
Avatar

Posted: one month ago

#10134 Quote

rdantonio

Posted: one month ago

#10134 Quote
I noticed this was added but not sure how to use. I tried this in the Custom MVC Routes field: CheckoutCompleted=CustomCheckoutController:CustomComplete and it did not work to show the dataLayer for our custom order complete page. Is my syntax incorrect or is there something I'm missing to get this working for order complete pages? Thanks
Avatar

Posted: one month ago

#10138 Quote

Support

Posted: one month ago

#10138 Quote
1. I added support custom Controller and Action.
Create the Custom template and configure it.

2. About new feature mapping nopcommerce controller and action to custom controller and action.
One of customer asked me to add it.
I prepared for it but this feature wasn't implemented it.
I didn't have free time.

Powered by nopCommerce

Copyright © 2019 FoxNetSoft. All rights reserved