Some integrations require access to member.uuid
in “code injection” (see Intercom).
Exposing member attributes that are available to themes to JavaScript would be helpful.
This could be achieved by adding @Cathy_Sarisky code in templates:
{{#if @member}}
<script>
set memberUUID = "{{@member.uuid}}"
</script>
{{/if}}
A more “global” approach would be theme-independent.
I would extend the above example to use a member
object with properties as they are used in the @member
object:
{{#if @member}}
<script>
set member = {
uuid: "{{@member.uuid}}",
email: "{{@member.email}}",
...
};
</script>
{{/if}}