Plugin Directory

Changeset 2255061


Ignore:
Timestamp:
03/05/2020 12:06:09 PM (6 years ago)
Author:
piwikpro
Message:

Version 2.2.3

Location:
piwik-pro-tag-manager-integration
Files:
52 added
16 edited

Legend:

Unmodified
Added
Removed
  • piwik-pro-tag-manager-integration/trunk/README.txt

    r2065613 r2255061  
    44Requires PHP: 7.0
    55Requires at least: 4.7
    6 Tested up to: 5.1.1
     6Tested up to: 5.3.2
    77Stable tag: trunk
    88License: GPLv3
     
    111111== Changelog ==
    112112
     113= 2.2.3 =
     114*Release date: 05.03.2020*
     115
     116* Updated: Piwik PRO Tag Manager snippet.
     117
    113118= 2.2.2 =
    114119*Release date: 09.04.2019*
  • piwik-pro-tag-manager-integration/trunk/framework/filterer.php

    r2065613 r2255061  
    22
    33/*
    4     Copyright (C) 2019 by Piwik PRO <https://piwik.pro>
     4    Copyright (C) 2020 by Piwik PRO <https://piwik.pro>
    55    and associates (see AUTHORS.txt file).
    66
  • piwik-pro-tag-manager-integration/trunk/framework/plugin.php

    r2065613 r2255061  
    22
    33/*
    4     Copyright (C) 2019 by Piwik PRO <https://piwik.pro>
     4    Copyright (C) 2020 by Piwik PRO <https://piwik.pro>
    55    and associates (see AUTHORS.txt file).
    66
  • piwik-pro-tag-manager-integration/trunk/framework/singleton.php

    r2065613 r2255061  
    22
    33/*
    4     Copyright (C) 2019 by Piwik PRO <https://piwik.pro>
     4    Copyright (C) 2020 by Piwik PRO <https://piwik.pro>
    55    and associates (see AUTHORS.txt file).
    66
  • piwik-pro-tag-manager-integration/trunk/includes/body.php

    r2065613 r2255061  
    22
    33/*
    4     Copyright (C) 2019 by Piwik PRO <https://piwik.pro>
     4    Copyright (C) 2020 by Piwik PRO <https://piwik.pro>
    55    and associates (see AUTHORS.txt file).
    66
  • piwik-pro-tag-manager-integration/trunk/includes/cron.php

    r2065613 r2255061  
    22
    33/*
    4     Copyright (C) 2019 by Piwik PRO <https://piwik.pro>
     4    Copyright (C) 2020 by Piwik PRO <https://piwik.pro>
    55    and associates (see AUTHORS.txt file).
    66
  • piwik-pro-tag-manager-integration/trunk/includes/files.php

    r2065613 r2255061  
    22
    33/*
    4     Copyright (C) 2019 by Piwik PRO <https://piwik.pro>
     4    Copyright (C) 2020 by Piwik PRO <https://piwik.pro>
    55    and associates (see AUTHORS.txt file).
    66
  • piwik-pro-tag-manager-integration/trunk/includes/functions.php

    r2065613 r2255061  
    22
    33/*
    4     Copyright (C) 2019 by Piwik PRO <https://piwik.pro>
     4    Copyright (C) 2020 by Piwik PRO <https://piwik.pro>
    55    and associates (see AUTHORS.txt file).
    66
  • piwik-pro-tag-manager-integration/trunk/includes/head.php

    r2065613 r2255061  
    22
    33/*
    4     Copyright (C) 2019 by Piwik PRO <https://piwik.pro>
     4    Copyright (C) 2020 by Piwik PRO <https://piwik.pro>
    55    and associates (see AUTHORS.txt file).
    66
     
    3838
    3939            return Tag_Manager::get_template( 'head', array(
    40                 'script'  => $script,
    41                 'time'    => $this->get_ver() ? date( 'Y-m-d H:i:s', $this->get_ver() ) : '',
    42                 'snippet' => $this->snippet
     40                'script'    => $script,
     41                'time'      => $this->get_ver() ? date( 'Y-m-d H:i:s', $this->get_ver() ) : '',
     42                'snippet'   => $this->snippet,
     43                'url'       => $this->url,
     44                'container' => $this->container
    4345            ) );
    4446        }
     
    6062        /**
    6163         * Echo buffered output.
    62          *
    6364         */
    6465        public function filter_shutdown_0() {
     
    7273                if ( ! $pos = stripos( $content, '</head>' ) ) goto end;
    7374                $content = substr_replace( $content, Tag_Manager::get_template( 'head', array(
    74                     'script'  => $this->get_ver() ? add_query_arg( 'ver', $this->get_ver(), $this->get_script() ) : $this->get_script(),
    75                     'time'    => $this->get_ver() ? date( 'Y-m-d H:i:s', $this->get_ver() ) : '',
    76                     'snippet' => $this->snippet
     75                    'script'    => $this->get_ver() ? add_query_arg( 'ver', $this->get_ver(), $this->get_script() ) : $this->get_script(),
     76                    'time'      => $this->get_ver() ? date( 'Y-m-d H:i:s', $this->get_ver() ) : '',
     77                    'snippet'   => $this->snippet,
     78                    'url'       => $this->url,
     79                    'container' => $this->container
    7780                ) ), $pos, 0 );
    7881            }
  • piwik-pro-tag-manager-integration/trunk/includes/http.php

    r2065613 r2255061  
    22
    33/*
    4     Copyright (C) 2019 by Piwik PRO <https://piwik.pro>
     4    Copyright (C) 2020 by Piwik PRO <https://piwik.pro>
    55    and associates (see AUTHORS.txt file).
    66
  • piwik-pro-tag-manager-integration/trunk/includes/section.php

    r2065613 r2255061  
    22
    33/*
    4     Copyright (C) 2019 by Piwik PRO <https://piwik.pro>
     4    Copyright (C) 2020 by Piwik PRO <https://piwik.pro>
    55    and associates (see AUTHORS.txt file).
    66
  • piwik-pro-tag-manager-integration/trunk/includes/settings.php

    r2065613 r2255061  
    22
    33/*
    4     Copyright (C) 2019 by Piwik PRO <https://piwik.pro>
     4    Copyright (C) 2020 by Piwik PRO <https://piwik.pro>
    55    and associates (see AUTHORS.txt file).
    66
  • piwik-pro-tag-manager-integration/trunk/includes/tag-manager.php

    r2065613 r2255061  
    22
    33/*
    4     Copyright (C) 2019 by Piwik PRO <https://piwik.pro>
     4    Copyright (C) 2020 by Piwik PRO <https://piwik.pro>
    55    and associates (see AUTHORS.txt file).
    66
  • piwik-pro-tag-manager-integration/trunk/plugin.php

    r2065613 r2255061  
    55    Plugin URI: https://wordpress.org/plugins/piwik-pro-tag-manager-integration
    66    Description: The plugin integrates WordPress site with Piwik PRO Tag Manager, allowing to add/modify website’s tags without the need to involve IT department.
    7     Version: 2.2.2
     7    Version: 2.2.3
    88    Author: piwikpro
    99    Author URI: https://piwik.pro
     
    1313    License URI: http://www.gnu.org/licenses/gpl-3.0.txt
    1414
    15     Copyright (C) 2019 by Piwik PRO <https://piwik.pro>
     15    Copyright (C) 2020 by Piwik PRO <https://piwik.pro>
    1616    and associates (see AUTHORS.txt file).
    1717
  • piwik-pro-tag-manager-integration/trunk/templates/body.php

    r1682630 r2255061  
    1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?><?php if ( ! empty( $url ) && ! empty( $container ) && ! empty( $script ) && ! empty( $noscript ) && ! empty( $snippet ) ) : ?><?php if ( version_compare( $snippet, '1.16.0', '>=' ) ) : ?><!-- Piwik PRO Tag Manager <?php if ( ! empty( $time ) ) : ?>@ <?= $time; ?> <?php endif; ?>--><script type="text/javascript">(function(window,document,script,dataLayer,id){function stgCreateCookie(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+24*c*60*60*1e3),d="; expires="+e.toUTCString()}document.cookie=a+"="+b+d+"; path=/"}var isStgDebug=(window.location.href.match("stg_debug")||window.document.cookie.match("stg_debug"))&&!window.location.href.match("stg_disable_debug");stgCreateCookie("stg_debug",isStgDebug?1:"",isStgDebug?365:-1);window[dataLayer]=window[dataLayer]||[],window[dataLayer].push({start:(new Date).getTime(),event:"stg.start"});var scripts=document.getElementsByTagName(script)[0],tags=document.createElement(script),dl="dataLayer"!=dataLayer?"?dataLayer="+dataLayer:"";tags.async=!0,tags.src="<?= $script; ?>"+dl,isStgDebug&&(tags.src=tags.src+"?stg_debug"),scripts.parentNode.insertBefore(tags,scripts);})(window,document,'script','dataLayer','<?= $container; ?>');</script><noscript><iframe src="<?= $noscript; ?>" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><!-- / Piwik PRO Tag Manager --><?= "\n"; ?><?php else : ?><!-- Piwik PRO Tag Manager <?php if ( ! empty( $time ) ) : ?>@ <?= $time; ?> <?php endif; ?>--><script type="text/javascript">(function(window,document,script,dataLayer,id){window[dataLayer]=window[dataLayer]||[],window[dataLayer].push({start:(new Date).getTime(),event:"stg.start"});var scripts=document.getElementsByTagName(script)[0],tags=document.createElement(script),dl="dataLayer"!=dataLayer?"?dataLayer="+dataLayer:"";tags.async=!0,tags.src="<?= $script; ?>"+dl,scripts.parentNode.insertBefore(tags,scripts);})(window,document,'script','dataLayer','<?= $container; ?>');</script><noscript><iframe src="<?= $noscript; ?>" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><!-- / Piwik PRO Tag Manager --><?= "\n"; ?><?php endif; ?><?php endif; ?>
     1<?php if ( ! defined( 'ABSPATH' ) ) exit; ?><?php if ( ! empty( $url ) && ! empty( $container ) && ! empty( $script ) && ! empty( $noscript ) && ! empty( $snippet ) ) : ?><?php if ( version_compare( $snippet, '1.16.0', '>=' ) ) : ?><!-- Piwik PRO Tag Manager <?php if ( ! empty( $time ) ) : ?>@ <?= $time; ?> <?php endif; ?>--><script type="text/javascript">(function(window,document,dataLayerName,id){window[dataLayerName]=window[dataLayerName]||[],window[dataLayerName].push({start:(new Date).getTime(),event:"stg.start"});var scripts=document.getElementsByTagName('script')[0],tags=document.createElement('script');function stgCreateCookie(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+24*c*60*60*1e3),d="; expires="+e.toUTCString()}document.cookie=a+"="+b+d+"; path=/"}var isStgDebug=(window.location.href.match("stg_debug")||document.cookie.match("stg_debug"))&&!window.location.href.match("stg_disable_debug");stgCreateCookie("stg_debug",isStgDebug?1:"",isStgDebug?14:-1);var qP=[];dataLayerName!=="dataLayer"&&qP.push("data_layer_name="+dataLayerName),isStgDebug&&qP.push("stg_debug");var qPString=qP.length>0?("?"+qP.join("&")):"";tags.async=!0,tags.src="//<?= $url; ?>/"+id+".js"+qPString,scripts.parentNode.insertBefore(tags,scripts);!function(a,n,i){a[n]=a[n]||{};for(var c=0;c<i.length;c++)!function(i){a[n][i]=a[n][i]||{},a[n][i].api=a[n][i].api||function(){var a=[].slice.call(arguments,0);"string"==typeof a[0]&&window[dataLayerName].push({event:n+"."+i+":"+a[0],parameters:[].slice.call(arguments,1)})}}(i[c])}(window,"ppms",["tm","cm"]);})(window,document,'dataLayer','<?= $container; ?>');</script><noscript><iframe src="//<?= $url; ?>/<?= $container; ?>/noscript.html" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><!-- / Piwik PRO Tag Manager --><?= "\n"; ?><?php else : ?><!-- Piwik PRO Tag Manager <?php if ( ! empty( $time ) ) : ?>@ <?= $time; ?> <?php endif; ?>--><script type="text/javascript">(function(window,document,script,dataLayer,id){window[dataLayer]=window[dataLayer]||[],window[dataLayer].push({start:(new Date).getTime(),event:"stg.start"});var scripts=document.getElementsByTagName(script)[0],tags=document.createElement(script),dl="dataLayer"!=dataLayer?"?dataLayer="+dataLayer:"";tags.async=!0,tags.src="<?= $script; ?>"+dl,scripts.parentNode.insertBefore(tags,scripts);})(window,document,'script','dataLayer','<?= $container; ?>');</script><noscript><iframe src="<?= $noscript; ?>" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><!-- / Piwik PRO Tag Manager --><?= "\n"; ?><?php endif; ?><?php endif; ?>
  • piwik-pro-tag-manager-integration/trunk/templates/head.php

    r1682630 r2255061  
    1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?><?php if ( ! empty( $script ) && ! empty( $snippet ) ) : ?><?php if ( version_compare( $snippet, '1.16.0', '>=' ) ) : ?><!-- Piwik PRO Tag Manager <?php if ( ! empty( $time ) ) : ?>@ <?= $time; ?> <?php endif; ?>--><script type="text/javascript">function stgCreateCookie(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+24*c*60*60*1e3),d="; expires="+e.toUTCString()}document.cookie=a+"="+b+d+"; path=/"}var isStgDebug=(window.location.href.match("stg_debug")||window.document.cookie.match("stg_debug"))&&!window.location.href.match("stg_disable_debug");stgCreateCookie("stg_debug",isStgDebug?1:"",isStgDebug?365:-1);var url = "<?= $script; ?>" + (isStgDebug ? "?stg_debug" : "");document.write('<script src="' + url + '"></' + 'script>');</script><!-- / Piwik PRO Tag Manager --><?= "\n"; ?><?php else : ?><!-- Piwik PRO Tag Manager <?php if ( ! empty( $time ) ) : ?>@ <?= $time; ?> <?php endif; ?>--><script src="<?= $script; ?>"></script><!-- / Piwik PRO Tag Manager --><?= "\n"; ?><?php endif; ?><?php endif; ?>
     1<?php if ( ! defined( 'ABSPATH' ) ) exit; ?><?php if ( ! empty( $url ) && ! empty( $container ) && ! empty( $script ) && ! empty( $snippet ) ) : ?><?php if ( version_compare( $snippet, '1.16.0', '>=' ) ) : ?><!-- Piwik PRO Tag Manager <?php if ( ! empty( $time ) ) : ?>@ <?= $time; ?> <?php endif; ?>--><script type="text/javascript">(function(window,document,dataLayerName,id){function stgCreateCookie(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+24*c*60*60*1e3),d="; expires="+e.toUTCString()}document.cookie=a+"="+b+d+"; path=/"}var isStgDebug=(window.location.href.match("stg_debug")||document.cookie.match("stg_debug"))&&!window.location.href.match("stg_disable_debug");stgCreateCookie("stg_debug",isStgDebug?1:"",isStgDebug?14:-1);var qP=[];dataLayerName!=="dataLayer"&&qP.push("data_layer_name="+dataLayerName),isStgDebug&&qP.push("stg_debug");var qPString=qP.length>0?("?"+qP.join("&")):"";document.write('<script src="//<?= $url; ?>/'+id+'.sync.js' + qPString + '"></' + 'script>');})(window,document,'dataLayer','<?= $container; ?>');</script><!-- / Piwik PRO Tag Manager --><?= "\n"; ?><?php else : ?><!-- Piwik PRO Tag Manager <?php if ( ! empty( $time ) ) : ?>@ <?= $time; ?> <?php endif; ?>--><script src="<?= $script; ?>"></script><!-- / Piwik PRO Tag Manager --><?= "\n"; ?><?php endif; ?><?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.