With this function, you can determine where in your email content the open pixel, used to track email opens, is placed.

opencode

{{opencode}}


By default, the open pixel is placed before the closing `<body>` tag;

standard open pixel

<img src="https://domain.nl/0/4/119/1/AIusA1A4kMdtdzKMrvTC_ZlrGX-7hNToIQlLWjjzJtl_FGY0I4JF6l7kRYwnPJXP" width="1" height="1" border="0" alt="" style="height: 1px !important; width: 1px !important; border: 0 !important; margin: 0 !important; padding: 0 !important; background-color: transparent !important;">
</body>


The best place for your tracking pixel is below the pre-header but before the start of your email HTML code. See the example below:

opencode below the pre-header

<body class="body">
<div style="display: none; width: 0; height: 0; max-height: 0; overflow: hidden;">{{$globals.previewText}}</div>
<div style="display: none; width: 0; height: 0; max-height: 0; overflow: hidden;">…&nbsp;&zwnj;&nbsp…</div>
{{opencode}}

..... HTML ...

</body>

Location of the open pixel

Placing the open pixel in the wrong location within HTML or an object can lead to consequences where email opens are not measured accurately.