You have no items in your shopping cart.

Sunday, December 22, 2024 3:28:06 AM

Tracking Manger - Data sending Query

Posted: 4 years ago

#11263 Quote

Pooja S

Posted: 4 years ago

#11263 Quote
We are using foxnetsoft tracking manager.
    We have created customRoles in our project. example - 'Quoting'.

    If we add %UserType% token to the tracking script, will the additionally created
    customRoles be added to the datalayer?
    
    If the user has multiple roles, will all the roles be added to the datalayer?
    
    NopCommerce version used - 3.80

Posted: 4 years ago

#11266 Quote

Support

Posted: 4 years ago

#11266 Quote
protected string GetCustomerRole()
        {
            if (_workContext.CurrentCustomer == null)
                return "Unknown";
            if (_workContext.IsAdmin)
                return "Admin";
            if (_workContext.CurrentVendor!=null)
                return "Vendor";
            if (_workContext.CurrentCustomer.IsSystemAccount)
                return "SystemAccount";
            if (_customerService.IsGuest(_workContext.CurrentCustomer))
                return "Guest";
            if (_customerService.IsRegistered(_workContext.CurrentCustomer))
                return "Registered";
            return "Unknown";
        }

Posted: 4 years ago

#11267 Quote

Pooja S

Posted: 4 years ago

#11267 Quote
The above ones are for the current roles available, what if we user custom roles. Roles which are not defined by nop commerce, but user defined?

Posted: 4 years ago

#11268 Quote

Support

Posted: 4 years ago

#11268 Quote
No, the plugin has only these preconfigured roles.

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved