• Hello,

    While implementing Quantcast Choice (using plugin v2.0.8) on our WordPress site I noticed that the plugin is loading most parts async. In particular, the code which creates the window.__tcfapi stub appears to be async and therefore not available for immediate use.

    From the v2.0 spec:

    The stub code must be loaded and executed synchronously before any other scripts that depend on the?__tcfapi?function to be there – this usually means between the?<head></head>?tags of the HTML document – in order to ensure that it can be executed before all calls from third parties.

    That was somewhat of a pain point versus using the Quantcast Universal Tag directly, since it provides the window.__tcfapi stub immediately. Given that Google will look at script load for immediate availability of window.__tcfapi (when window[‘gtag_enable_tcf_support’] = true) and ignore TCF when it doesn’t find it.

  • The topic ‘Quantcast Plugin missing immediate stub’ is closed to new replies.