Hi,the custom code mentioned here shows an error for line 1. the "[ ]"
are not accepted. only way to save the code was to declare TCode as a
variable not an array. could you help with the syntax to declare an
array for custom data element?Thanks!
Hi,I am using getQueryParam plugin 2.3 to set s.campaign but it doesn't
an errors.campaign=s.getQueryParam('utm_source');returns the source
value in s.campaignis there a solution for this?
update:replaced s.pageURL with window.document.URL and the rule seems to
work fine. however only the first part of the condition is being
considered i.e. rules fires when URL contains /xyz but not when it
contains /abc. if (window.document.URL.indexOf("/xyz")>-1 ||
window.document.URL.indexOf("/abc")>-1)is there any other way to
implement an OR condition?
Hi,I am trying to set values in some evars, props and events based on
keywords present in the URL in the custom code of a direct call rule. so
IF the URL contains xyz or abc, set if (s.pageURL.indexOf("/xyz")>-1 ||
idea on how to make these conditions work?