Does anyone know if it is possible to restrict a "User Event" type script to only execute in the context of a particular website? We have two websites and we only want certain UE scripts to run for certain websites
p
PabloZ
05/27/2020, 5:26 PM
if you have different roles for customers you might get away with that
r
Rehan Ali
05/27/2020, 5:51 PM
Thanks PabloZ,
Though I don't believe we have different roles for customers.
p
PabloZ
05/27/2020, 6:16 PM
Then... some records have the website attribute, you can leverage that and read from newRecord
Obviously not exactly what you want (it's code not config) but might be close for some use cases.
PabloZ
05/27/2020, 6:18 PM
and... this might be far fetched and totally not your case, but 20.1 has localization context. If your sites are in different regions you might want to play around with that.
Never tested that myself and can potentially not work on webstores, but it might work for you.
PabloZ
05/27/2020, 6:19 PM
Or subsidiaries too, you can filter by sub
r
Rehan Ali
05/27/2020, 7:37 PM
Many thanks PabloZ , we'll look into those options