Formulas / Expressions for Web Analytics (Brand Configuration)
Hi All,
I would like to be able to output the "event date" in YYYY/MM format for my google analytics links, which are set up in a brand configuration.
I've configured like below, using expression ToString(Year(context.eventDate)+'/'+Month(context.eventDate))

However, this returns the following error in the sending logs (with a status failed) when attempting to send a delivery.
Error while compiling script 'DM282[htmldefaultContent]' line 49: Year is not defined.
Seems I cannot use the date functions? (this type of expression worked fine on workflow worktable expressions)
Has anyone got any ideas as to how I can achieve event date in YYYY/MM for GA tracking?
Thanks
David