With this function, you can determine where in your email content the open pixel, used to track email opens, is placed.
By default, the open pixel is placed before the closing `<body>` tag;
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;">… ‌ …</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.