@Nutsa9858
use built-in personalization block designed for this purpose. Instead of custom scripting, you simply use the special tag in your email HTML content.
https://experienceleague.adobe.com/en/docs/campaign-web/v8/content/email-design/design-content/mirro...
Example usage:
<% if ( document.mode != 'mirror' && document.mode != 'forward' ) { %>
<p align="center" style="font-family: Verdana, Arial; font-size: 10px">
If you are unable to view this message correctly,
<a href="<%@ include view='MirrorPageUrl' %>" _label="Mirror Page" _type="mirrorPage">
click here
</a>
</p>
<% } %>
If you are using AJO’s email designer, follow these steps:
- Select the text or image where you want to add the mirror page link.
- Click the “Insert Link” option.
- Use the personalization or fragments menu to select “Mirror page URL.”