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.
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
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.
I have tried your solution for a Custom template, and it works, the configuration shows up on the page with custom controller but the tokens are not working. %ProductId% shows up as empty and %CustomerEmail%, for example, just reads as a string. Any help with this?
Yes, it was a registred user. And it was on product details page, I just changed the controller to our custom controller for products. the script shows up on the page, except the tokens are not working.
Can I see it in the trial version too? When I install it it says version 1.41 I am using the trial version to check if it gets the job I need done before I buy it.