summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/wordads/wordads.php')
-rw-r--r--plugins/jetpack/modules/wordads/wordads.php16
1 files changed, 7 insertions, 9 deletions
diff --git a/plugins/jetpack/modules/wordads/wordads.php b/plugins/jetpack/modules/wordads/wordads.php
index 9ec3e07f..1f63d02f 100644
--- a/plugins/jetpack/modules/wordads/wordads.php
+++ b/plugins/jetpack/modules/wordads/wordads.php
@@ -149,18 +149,16 @@ class WordAds {
* @return [type] [description]
*/
function insert_head_meta() {
- $domain = $this->params->targeting_tags['Domain'];
- $pageURL = $this->params->targeting_tags['PageURL'];
- $adsafe = $this->params->targeting_tags['AdSafe'];
+ $themename = esc_js( get_stylesheet() );
+ $pagetype = intval( $this->params->get_page_type_ipw() );
$data_tags = ( $this->params->cloudflare ) ? ' data-cfasync="false"' : '';
echo <<<HTML
<script$data_tags type="text/javascript">
- var _ipw_custom = {
- wordAds: '1',
- domain: '$domain',
- pageURL: '$pageURL',
- adSafe: '$adsafe'
- };
+ var __ATA_PP = { pt: $pagetype, ht: 2, tn: '$themename', amp: false };
+ var __ATA = __ATA || {};
+ __ATA.cmd = __ATA.cmd || [];
+ __ATA.criteo = __ATA.criteo || {};
+ __ATA.criteo.cmd = __ATA.criteo.cmd || [];
</script>
HTML;
}