What do script tags do?

Basis DSP uses JavaScript tags as the preferred option for adding users to audiences or tracking conversions. These tags offer some advantages over image pixels. The tags automatically determine whether the current page requires HTTPS and act accordingly. In addition, script tags initiate cookie syncs with one or more of our exchange and data partners. Cookie syncs are technically necessary for cookie audience based targeting such as retargeting or third-party audiences. See SSP to DSP Cookie Syncing Explained on Ad Ops Insider for more about this.

Exchanges and data providers initiate cookie syncing with Basis DSP where possible on their own footprint—that is, pages on which their code executes. In addition, Basis DSP initiates cookie syncs when serving ad impressions, as well as in our audience and conversion scripts. This ensures that campaigns targeting audiences—first- or third-party—are able to achieve maximum scale, as exchange or data provider-initiated sync alone may not reach all users. 

The cookie sync code in Basis DSP audience and conversion scripts is designed to ensure maximum safety against data leakage and excess latency. Third-party pixels are loaded into a cross-domain IFrame. This ensures that third-party pixels do not delay page load. In addition, browser security policy prevents anything loaded into a cross-domain IFrame from knowing about the page the IFrame is placed on. This means that the pixels from exchanges and data providers are not able to gather any information about the page URL or the contents of the page. We also only use image pixels from third-parties to ensure that JavaScript cannot be used to circumvent these restrictions. 

Regardless of this, some advertisers may have a policy of not allowing third-party pixels to be fired on their sites. If this is the case, you can use the HTML image option instead of the script option for your audiences and conversions. The two options are functionally identical except that the script option also includes cookie syncs. It is not recommended to use the HTML image option unless it is necessary as it may have a negative impact on campaign scale since it is necessary for users to be synced at other opportunities (exchange/data provider initiated, or when Basis DSP serves impressions) for audience-targeted campaigns to spend. 

Was this article helpful?
0 out of 0 found this helpful