ExM, Sitecore

Sitecore ECM Opened emails not registered on Azure CD server

Sitecore Azure module 2.0 has an error on the default transformation code of Content delivery farms. In fact, Sitecore Azure module 3.0 inherited the same error in the Global web config patch.

When you combine this error with ECM, the result is that you don’t get opened emails information when you set up your base url to your CD servers. Why? Becaouse the functionality to register this “event” uses your “Content database”, and it is not available.

If we have a look at the transformation fields (or patch fields), we´ll find this section:

<xsl:template match="sitecore/sites/site[@content='master']/@content">
    <xsl:attribute name="value">web</xsl:attribute>

Looks fine right? This changes the content database of any site from master to web, exactly what we need. Are you sure?

The result of this transformation is site name=”xxx” value=”web”

So, how can we fix the problem?

<xsl:template match="sitecore/sites/site[@content='master']/@content">
    <xsl:attribute name="content">web</xsl:attribute>

As easy as that. replace “value” by “content”, save, upgrade files and problem fixed, now you can see who opened your emails.

This error is not only related to ECM, as this will break any site using the Content Database

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.