Changeset 2255061
- Timestamp:
- 03/05/2020 12:06:09 PM (6 years ago)
- Location:
- piwik-pro-tag-manager-integration
- Files:
-
- 52 added
- 16 edited
-
tags/2.2.3 (added)
-
tags/2.2.3/.htaccess (added)
-
tags/2.2.3/AUTHORS.txt (added)
-
tags/2.2.3/LICENSE.txt (added)
-
tags/2.2.3/README.txt (added)
-
tags/2.2.3/assets (added)
-
tags/2.2.3/assets/css (added)
-
tags/2.2.3/assets/css/index.html (added)
-
tags/2.2.3/assets/css/style.css (added)
-
tags/2.2.3/assets/index.html (added)
-
tags/2.2.3/assets/js (added)
-
tags/2.2.3/assets/js/index.html (added)
-
tags/2.2.3/assets/js/script.js (added)
-
tags/2.2.3/framework (added)
-
tags/2.2.3/framework/filterer.php (added)
-
tags/2.2.3/framework/index.html (added)
-
tags/2.2.3/framework/plugin.php (added)
-
tags/2.2.3/framework/singleton.php (added)
-
tags/2.2.3/includes (added)
-
tags/2.2.3/includes/body.php (added)
-
tags/2.2.3/includes/cron.php (added)
-
tags/2.2.3/includes/files.php (added)
-
tags/2.2.3/includes/functions.php (added)
-
tags/2.2.3/includes/head.php (added)
-
tags/2.2.3/includes/http.php (added)
-
tags/2.2.3/includes/index.html (added)
-
tags/2.2.3/includes/section.php (added)
-
tags/2.2.3/includes/settings.php (added)
-
tags/2.2.3/includes/tag-manager.php (added)
-
tags/2.2.3/index.html (added)
-
tags/2.2.3/languages (added)
-
tags/2.2.3/languages/index.html (added)
-
tags/2.2.3/languages/piwik-pro-tag-manager-integration-pl_PL.mo (added)
-
tags/2.2.3/languages/piwik-pro-tag-manager-integration-pl_PL.po (added)
-
tags/2.2.3/plugin.php (added)
-
tags/2.2.3/screenshot-1.png (added)
-
tags/2.2.3/screenshot-2.png (added)
-
tags/2.2.3/templates (added)
-
tags/2.2.3/templates/body.php (added)
-
tags/2.2.3/templates/code.php (added)
-
tags/2.2.3/templates/config.php (added)
-
tags/2.2.3/templates/cron.php (added)
-
tags/2.2.3/templates/head.php (added)
-
tags/2.2.3/templates/htaccess.php (added)
-
tags/2.2.3/templates/index.html (added)
-
tags/2.2.3/templates/input.php (added)
-
tags/2.2.3/templates/link.php (added)
-
tags/2.2.3/templates/menu.php (added)
-
tags/2.2.3/templates/notice.php (added)
-
tags/2.2.3/templates/page.php (added)
-
tags/2.2.3/templates/rules.php (added)
-
tags/2.2.3/templates/section.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/framework/filterer.php (modified) (1 diff)
-
trunk/framework/plugin.php (modified) (1 diff)
-
trunk/framework/singleton.php (modified) (1 diff)
-
trunk/includes/body.php (modified) (1 diff)
-
trunk/includes/cron.php (modified) (1 diff)
-
trunk/includes/files.php (modified) (1 diff)
-
trunk/includes/functions.php (modified) (1 diff)
-
trunk/includes/head.php (modified) (4 diffs)
-
trunk/includes/http.php (modified) (1 diff)
-
trunk/includes/section.php (modified) (1 diff)
-
trunk/includes/settings.php (modified) (1 diff)
-
trunk/includes/tag-manager.php (modified) (1 diff)
-
trunk/plugin.php (modified) (2 diffs)
-
trunk/templates/body.php (modified) (1 diff)
-
trunk/templates/head.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
piwik-pro-tag-manager-integration/trunk/README.txt
r2065613 r2255061 4 4 Requires PHP: 7.0 5 5 Requires at least: 4.7 6 Tested up to: 5. 1.16 Tested up to: 5.3.2 7 7 Stable tag: trunk 8 8 License: GPLv3 … … 111 111 == Changelog == 112 112 113 = 2.2.3 = 114 *Release date: 05.03.2020* 115 116 * Updated: Piwik PRO Tag Manager snippet. 117 113 118 = 2.2.2 = 114 119 *Release date: 09.04.2019* -
piwik-pro-tag-manager-integration/trunk/framework/filterer.php
r2065613 r2255061 2 2 3 3 /* 4 Copyright (C) 20 19by Piwik PRO <https://piwik.pro>4 Copyright (C) 2020 by Piwik PRO <https://piwik.pro> 5 5 and associates (see AUTHORS.txt file). 6 6 -
piwik-pro-tag-manager-integration/trunk/framework/plugin.php
r2065613 r2255061 2 2 3 3 /* 4 Copyright (C) 20 19by Piwik PRO <https://piwik.pro>4 Copyright (C) 2020 by Piwik PRO <https://piwik.pro> 5 5 and associates (see AUTHORS.txt file). 6 6 -
piwik-pro-tag-manager-integration/trunk/framework/singleton.php
r2065613 r2255061 2 2 3 3 /* 4 Copyright (C) 20 19by Piwik PRO <https://piwik.pro>4 Copyright (C) 2020 by Piwik PRO <https://piwik.pro> 5 5 and associates (see AUTHORS.txt file). 6 6 -
piwik-pro-tag-manager-integration/trunk/includes/body.php
r2065613 r2255061 2 2 3 3 /* 4 Copyright (C) 20 19by Piwik PRO <https://piwik.pro>4 Copyright (C) 2020 by Piwik PRO <https://piwik.pro> 5 5 and associates (see AUTHORS.txt file). 6 6 -
piwik-pro-tag-manager-integration/trunk/includes/cron.php
r2065613 r2255061 2 2 3 3 /* 4 Copyright (C) 20 19by Piwik PRO <https://piwik.pro>4 Copyright (C) 2020 by Piwik PRO <https://piwik.pro> 5 5 and associates (see AUTHORS.txt file). 6 6 -
piwik-pro-tag-manager-integration/trunk/includes/files.php
r2065613 r2255061 2 2 3 3 /* 4 Copyright (C) 20 19by Piwik PRO <https://piwik.pro>4 Copyright (C) 2020 by Piwik PRO <https://piwik.pro> 5 5 and associates (see AUTHORS.txt file). 6 6 -
piwik-pro-tag-manager-integration/trunk/includes/functions.php
r2065613 r2255061 2 2 3 3 /* 4 Copyright (C) 20 19by Piwik PRO <https://piwik.pro>4 Copyright (C) 2020 by Piwik PRO <https://piwik.pro> 5 5 and associates (see AUTHORS.txt file). 6 6 -
piwik-pro-tag-manager-integration/trunk/includes/head.php
r2065613 r2255061 2 2 3 3 /* 4 Copyright (C) 20 19by Piwik PRO <https://piwik.pro>4 Copyright (C) 2020 by Piwik PRO <https://piwik.pro> 5 5 and associates (see AUTHORS.txt file). 6 6 … … 38 38 39 39 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 43 45 ) ); 44 46 } … … 60 62 /** 61 63 * Echo buffered output. 62 *63 64 */ 64 65 public function filter_shutdown_0() { … … 72 73 if ( ! $pos = stripos( $content, '</head>' ) ) goto end; 73 74 $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 77 80 ) ), $pos, 0 ); 78 81 } -
piwik-pro-tag-manager-integration/trunk/includes/http.php
r2065613 r2255061 2 2 3 3 /* 4 Copyright (C) 20 19by Piwik PRO <https://piwik.pro>4 Copyright (C) 2020 by Piwik PRO <https://piwik.pro> 5 5 and associates (see AUTHORS.txt file). 6 6 -
piwik-pro-tag-manager-integration/trunk/includes/section.php
r2065613 r2255061 2 2 3 3 /* 4 Copyright (C) 20 19by Piwik PRO <https://piwik.pro>4 Copyright (C) 2020 by Piwik PRO <https://piwik.pro> 5 5 and associates (see AUTHORS.txt file). 6 6 -
piwik-pro-tag-manager-integration/trunk/includes/settings.php
r2065613 r2255061 2 2 3 3 /* 4 Copyright (C) 20 19by Piwik PRO <https://piwik.pro>4 Copyright (C) 2020 by Piwik PRO <https://piwik.pro> 5 5 and associates (see AUTHORS.txt file). 6 6 -
piwik-pro-tag-manager-integration/trunk/includes/tag-manager.php
r2065613 r2255061 2 2 3 3 /* 4 Copyright (C) 20 19by Piwik PRO <https://piwik.pro>4 Copyright (C) 2020 by Piwik PRO <https://piwik.pro> 5 5 and associates (see AUTHORS.txt file). 6 6 -
piwik-pro-tag-manager-integration/trunk/plugin.php
r2065613 r2255061 5 5 Plugin URI: https://wordpress.org/plugins/piwik-pro-tag-manager-integration 6 6 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. 27 Version: 2.2.3 8 8 Author: piwikpro 9 9 Author URI: https://piwik.pro … … 13 13 License URI: http://www.gnu.org/licenses/gpl-3.0.txt 14 14 15 Copyright (C) 20 19by Piwik PRO <https://piwik.pro>15 Copyright (C) 2020 by Piwik PRO <https://piwik.pro> 16 16 and associates (see AUTHORS.txt file). 17 17 -
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.